selenium c# headless chrome code example
Example: headless chromedriver C#
ChromeOptions options = new ChromeOptions();
options.AddArguments(new List<string>()
{
"--silent-launch",
"--no-startup-window",
"no-sandbox",
"headless"
});
ChromeDriver driver = new ChromeDriver(options);