6

i've tried to add proxy authentication in chrome webdriver which run on the watir like belows:

require 'watir'
proxies = ['--proxy-server=185.264.167.184:63109', '--proxy-auth=username:password']
browser = Watir::Browser.new :chrome, :switches => proxies
browser.goto(url)

when the browser run it still asking me username and password like below: enter image description here

And the question is how to set username and password in chrome driver which run on the watir ?

1 Answers1

0

This isn't possible atm with raw Chrome, but it works using a Chrome-extension.

There's allready a python-script to automate that, but I don't think for watir yet.

This answer might also help you for porting to watir.

kaliiiiiiiii
  • 925
  • 1
  • 2
  • 21