-1

Every time I execute application. ChromeDriver.exe gets execute. I simply wanna hide it while application gets executed. It should run in silent or headless mode. I have my code written in C# with selenium.

1 Answers1

0

When you initialize the ChromeDriver instance, you can add this:

var chromeOptions = new ChromeOptions();
chromeOptions.AddOption("--headless");

driver = new ChromeDriver(chromeOptions);

This will tell ChromeDriver to run without rendernig a browser.

CEH
  • 5,701
  • 2
  • 16
  • 40