让Phantomjs的Webdriver支持socks代理

phantomjs的src/ghostdriver/session.js文件里的_getProxySettingsFromCapabilities方法修改一下,按照httpProxy的方式写一段socksProxy的逻辑,然后重新编译phantomjs。

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>