How to use authenticated proxy?


To use the unauthenticated proxy, I did:

PROXY = "<ip>:<port>"
def_options.add_argument('--proxy-server=%s' % PROXY)

But how can I set authenticated proxy on chromedriver?

@janailton Chrome doesn’t allow username and password authenticated proxy via command line.

I was doing a little research and many people are using this approach GitHub - sjitech/proxy-login-automator: A single node.js script to automatically inject user/password to http proxy server via a local forwarder which basically creates a tunnel proxy.

Another alternative is to set it up on the OS level or use a Chrome plugin for proxy.