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:port
set 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:port
https-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