In case you work in a VPN and want to access outside resources, you may be asked for proxy credentials everytime. This is a blocker when you test websites using Selenium. To avoid this, save the proxy username and password on a system level:
Follow these steps:
a. Click “Start’, type “Credential Manager” in the Start search box and hit enter.
b. In the left pane, click “Manage your credentials”.
c. Click add credential for Windows credentials.
d. Enter details (domain name: your proxy server address).