I have used DesiredCapabilities
capabilities = dict(DesiredCapabilities.CHROME)
capabilities['proxy'] = {'proxyType': 'MANUAL',
'httpProxy': proxy['address'],
'ftpProxy': proxy['address'],
'sslProxy': proxy['address'],
'noProxy': '',
'class': "org.openqa.selenium.Proxy",
'autodetect': False
}
chrome_options = Options()
chrome_options.add_argument('--headless')
But nothing happen, where if I remove headless I get to see Authentication required alert.
I have also used
chrome_options.add_argument('--proxy-server=http://%s:%s@%s:%s'%(Config.PROXY_USERNAME,Config.PROXY_PASSWORD,Config.PROXY_URL,Config.PROXY_PORT))
But this did not help. Where I have changed "http" to "socks","socks4" and "socks5" where this didn't help even.