如何在 Java 中为 Selenium 2 的 ChromeDriver 设置 HTTP 代理?我知道如何使用 FirefoxProfile 为 FirefoxDriver 执行此操作,但似乎没有 ChromeProfile。
最佳答案
您可以简单地在 chrome 级别设置 chrome 代理首选项。与 Firefox 驱动程序不同,chrome 驱动程序不会在每次启动 session 时重置 chrome 首选项。
关于java - 如何在Selenium 2的ChromeDriver中设置HTTP代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7580430/