i've created browser instance using watir like below:
proxies = ['--proxy-server=hostname:portnumber', '--proxy-auth=username:password']
browser = Watir::Browser.new :chrome, :switches => proxiesle
but the problem above the code is cannot authenticate proxy by passing parameters --proxy-auth=username:password
, i was wondering how could i automatically set username and proxy in chrome driver? Some solution was written in java like below:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("chrome.switches", Arrays.asList("--proxy-server=http://user:password@proxy.com:8080"));
WebDriver driver = new ChromeDriver(capabilities);
how you guys to override proxy authentication inside chrome ?