[英]C# Selenium proxy option
Hello I have bought some residential proxies.您好,我已经购买了一些住宅代理。 However they require user:pass auth as well as the address:port.
但是,它们需要 user:pass auth 以及 address:port。
I can't seem to authenticate it in Selenium C#.我似乎无法在 Selenium C# 中对其进行身份验证。 This is my code for setting up the proxy settings:
这是我设置代理设置的代码:
options.AddArguments("--proxy-server=http://myusername:mypassword@proxyaddress:proxyport");
IWebDriver webDriver = new ChromeDriver(options);
It gives me an error on google page: ERR_NO_SUPPORTED_PROXIES.它在谷歌页面上给了我一个错误:ERR_NO_SUPPORTED_PROXIES。 I am certain I have set it up wrong
我确定我设置错了
Regards.问候。
You could use Method with SendKeys("username") and ("password") and let it press Enter.您可以将 Method 与 SendKeys("username") 和 ("password") 一起使用,然后按 Enter。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.