【发布时间】:2018-08-27 08:54:57
【问题描述】:
在documentation 中,我读到了在构建驱动程序时使用代理集的内容:
var driver = new webdriver.Builder()
.withCapabilities(webdriver.Capabilities.chrome())
.setProxy(proxy.manual({http: 'host:1234'}))
.build();
当我将此代码与代理 '103.87.16.2:80' - .setProxy(proxy.manual({http: 'host:1234'})) 一起使用时,我仍然有我的家庭 IP。
有什么问题?
【问题讨论】:
-
代理按预期工作。您如何确定正在使用的 IP 地址?另外,请查看stackoverflow.com/questions/11450158/… 和sites.google.com/a/chromium.org/chromedriver/capabilities
标签: javascript selenium