开发者

Selenium: Can I tunnel through an *External* HTTP/SOCKS proxy over Firefox?

开发者 https://www.devze.com 2023-01-04 18:23 出处:网络
I know Selenium Server acts AS a proxy. But I want to know if I can instruct a test to connect through to either a SOCKS or plain http proxy, eg: Tuenneling through an external Proxy. (It\'s so hard t

I know Selenium Server acts AS a proxy. But I want to know if I can instruct a test to connect through to either a SOCKS or plain http proxy, eg: Tuenneling through an external Proxy. (It's so hard to search for because the word proxy just shows how Selenium works, not if it supports this feature....)开发者_开发问答


You can use -DsocksProxyHost=socks.******.*** -DsocksProxyPort=1080 while running it .

or

In the MANual , you can find this.. -proxyInjectionMode: puts you into proxy injection mode, a mode where the selenium server acts as a proxy server for all content going to the test application. Under this mode, multiple domains can be visited, and the following additional flags are supported:

or set the settings mentioned above in the system variables..

Yenjoy!

0

精彩评论

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

关注公众号