Is there any way to hide the chrome windows opened with Selenium WebDriver in C# console application?
Asked
Active
Viewed 2,192 times
1 Answers
2
There does appear to be a workaround for this.
Specifically, the CreateNoWindow Property.
By default it's value is false
, but try setting it to true
.
Inside the Start()
method in your WebDriver\DriverService.cs
You'd place it like so:
this.driverServiceProcess.StartInfo.CreateNoWindow = true;

dsgriffin
- 66,495
- 17
- 137
- 137
-
Beware of doing this without using the full build process for the Selenium project. Simply building in Visual Studio will not give you an equivalent assembly to that generated by the Selenium project's build script. – JimEvans May 02 '13 at 00:40