【发布时间】:2018-01-23 22:23:23
【问题描述】:
我曾经像下面的代码一样在 chrome 上设置代理,但是当我更新到 selenium 3.8.1 代理停止工作时,我没有收到任何错误,它只是不使用代理服务器,我不知道为什么。我的 chromedriver 也是最新的。
options = webdriver.ChromeOptions()
options.add_argument('--proxy-server=192.99.55.120:3128')
driver = webdriver.Chrome(executable_path='C:\chromedriver_win32\chromedriver.exe', chrome_options=options)
driver.get("http://google.com/")
希望收到任何建议,也许是为 chromedriver 设置代理的替代方法。
【问题讨论】:
-
用您看到的错误更新问题。
-
我告诉过我没有收到任何错误
标签: python google-chrome selenium-webdriver proxy