我使用C#硒Webdriver 3.141 + chromedriver v78.0.3904.10500
我想显示以前的命令提示符窗口,但现在根本不显示
我发现HideCommandPromptWindow
中的DriverService
选项应该可以更改此行为,但是我仍然没有显示命令提示符窗口
var driverService = ChromeDriverService.CreateDefaultService();
driverService.HideCommandPromptWindow = false;
IWebDriver driver= new ChromeDriver(driverService, ChromeOptions);
private static ChromeOptions ChromeOptions
{
get
{
var options = new ChromeOptions();
options.AddArguments("chrome.switches",
"--disable-extensions "
+ "--disable-extensions-file-access-check "
+ "--disable-extensions-http-throttling "
+ "--disable-infobars "
+ "--enable-automation "
+ "--start-maximized "
+ "--disable-notifications ");
return options;
}
}