【发布时间】:2015-03-04 01:03:22
【问题描述】:
此代码有效:
var ieOptions = new InternetExplorerOptions();
ieOptions.ForceCreateProcessApi = true;
ieOptions.BrowserCommandLineArguments = "-private";
Proxy proxy = new Proxy()
{
Kind = ProxyKind.Manual,
HttpProxy = "1.1.1.1:8080",
SslProxy = "1.1.1.1:8080",
};
ieOptions.Proxy = proxy;
IWebDriver driver = new InternetExplorerDriver(ieOptions);
这段代码没有:
var ieOptions = new InternetExplorerOptions();
ieOptions.ForceCreateProcessApi = true;
ieOptions.BrowserCommandLineArguments = "-private";
Proxy proxy = new Proxy()
{
Kind = ProxyKind.Manual,
SocksProxy = "1.1.1.1:1080",
};
ieOptions.Proxy = proxy;
IWebDriver driver = new InternetExplorerDriver(ieOptions);
那里根本没有检查 IE 设置和袜子。 是bug吗?
【问题讨论】: