how to set https proxy for selenium's webdriver?
I've just discovered that it is now configured to support --proxy="<proxy>"
as an argument, so problem solved.
I also needed to use --ignore_ssl
for this
In cmd
set PROXY=http://username:password@proxyserver:portset HTTP_PROXY=%PROXY%set HTTPS_PROXY=%PROXY% webdriver-manager update
Or go to file .npmrc usually is here C:\Users\username.npmrc ( if not, search it with command npm config ls -l | grep config
) and set the proxy variables manually by typing in it
proxy=http://username:password@proxyserver:porthttps-proxy=http://username:password@proxyserver:port
A third way is to make two system environment variables HTTP_PROXY and HTTPS_PROXY with value http://username:password@proxyserver:port
webdriver-manager update
For me, it worked when I switched network, from proxy to without proxy and downloaded folders from the displayed URL and pasted in specified location
\testApp>webdriver-manager update[16:20:02] I/update - chromedriver: file exists C:\Program Files\nodejs\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_2.41.zip[16:20:02] I/update - chromedriver: unzipping chromedriver_2.41.zip[16:20:02] I/update - chromedriver: chromedriver_2.41.exe up to date[16:20:03] I/update - selenium standalone: file exists C:\Program Files\nodejs\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.14.0.jar[16:20:03] I/update - selenium standalone: selenium-server-standalone-3.14.0.jar up to date[16:20:08] I/downloader - curl -oC:\Program Files\nodejs\node_modules\protractor\node_modules\webdriver-manager\selenium/geckodriver-v0.21.0.zip https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-win64.zip