Selenium:我可以通过 Firefox 上的*外部* HTTP/SOCKS 代理进行隧道传输吗?

发布于 2024-09-07 23:54:47 字数 160 浏览 3 评论 0原文

我知道 Selenium Server 充当代理。但我想知道是否可以指示测试连接到 SOCKS 或普通 http 代理,例如:通过外部代理进行 Tuenneling。 (很难搜索,因为代理这个词只是显示了 Selenium 的工作原理,而不是它是否支持此功能......)

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....)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零時差 2024-09-14 23:54:47

您可以在运行时使用 -DsocksProxyHost=socks.******.*** -DsocksProxyPort=1080 。

或者

在手册中,您可以找到这个..
-proxyInjectionMode:让你进入代理注入模式,一种模式
其中 selenium 服务器充当所有内容的代理服务器
转到测试应用程序。该模式下,多个域
可以访问,并且支持以下附加标志:


在系统变量中设置上述设置..Yenjoy

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文