开发者

How to set HTTP proxy in ChromeDriver of Selenium 2?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜