Rails: Proxy Authentication in Watir (Chrome Driver)

拜拜、爱过 提交于 2019-12-12 10:48:29

问题


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:

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

来源:https://stackoverflow.com/questions/46032288/rails-proxy-authentication-in-watir-chrome-driver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!