Reputation: 1
I am using latest version bonigarcia/webdrivermanager. In my company they are not allowing to access the driver api website for downloading driver exe or api while using company VPN, even proxy does not work.
How I can resolve this issue? What option provided by webdrivermanager to overcome this situation?
Note- Framework is required to run while VPN is on.
Upvotes: 0
Views: 1501
Reputation: 133
In your scenario you need the company proxy. Once you get it you need to follow these steps when using MAVEN:
Under .m2 folder, create an xml file called settings and enter the proxy below
<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>https</protocol>
<host>YOUR COMPANY PROXY</host>
<port>80</port>
<username></username>
<password></password>
<nonProxyHosts></nonProxyHosts>
</proxy>
</proxies>
</settings>
Enter the following in the main project so that webdrivermanager can work:
WebDriverManager.chromedriver().proxy("YOUR COMPANY PROXY:80").setup();
WebDriver driver = new ChromeDriver();
That will make it work.
Upvotes: 0