Reputation: 51
I'm trying to launch Chrome headless in WebDriver I am seeing that a blank browser window still pops up while the tests execute.
My code looks like this:
ChromeOptions chromeOpt = new ChromeOptions();
chromeOpt.AddArguments("--headless");
chromeOpt.AddArguments("--disable-gpu");
driver = new ChromeDriver(chromeOpt);
The Chrome browser is Version 59.0.3071.115. And I am utilizing the Selenium.WebDriver (.NET bindings for the Selenium WebDriver API NuGet package) version 3.4.0 in Visual Studio 2015.
Thanks for any help.
Upvotes: 1
Views: 1899
Reputation: 51
I fixed my problem by adding a reference to version 2.31.0 of the Chrome.WebDriver.ChromeDriver NuGet package to my project.
Upvotes: 3