Home

Published

- 1 min read

headless chromedriver C#

img of headless chromedriver C#

The solution for this is noted below

headless chromedriver C#

Solution

   ChromeOptions options = new ChromeOptions();

options.AddArguments(new List<string>()
{
  "--silent-launch",
  "--no-startup-window",
  "no-sandbox",
  "headless"
});

ChromeDriver driver = new ChromeDriver(options);

Try other methods by searching on the site. That is if this doesn’t work