开发者

How to set HTTP proxy in ChromeDriver of Selenium 2?

开发者 https://www.devze.com 2023-04-08 18:33 出处:网络
how do I set a HTTP proxy for S开发者_StackOverflowelenium 2\'s ChromeDriver in Java? I know how to do it for the FirefoxDriver using a FirefoxProfile, but there doesn\'t seem to be a ChromeProfile.Yo

how do I set a HTTP proxy for S开发者_StackOverflowelenium 2's ChromeDriver in Java? I know how to do it for the FirefoxDriver using a FirefoxProfile, but there doesn't seem to be a ChromeProfile.


You could simply set the chrome proxy prefs at the chrome level. Unlike the firefox driver, the chrome driver does not reset chrome prefs each time it initiates a session.

0

精彩评论

暂无评论...
验证码 换一张
取 消