ChromeOptions options = new ChromeOptions();
options.AddArguments(new List<string>()
{
"--silent-launch",
"--no-startup-window",
"no-sandbox",
"headless"
});
ChromeDriver driver = new ChromeDriver(options);
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
...
var chromeOptions = new ChromeOptions();
chromeOptions.AddArguments("headless");
using (var browser = new ChromeDriver(chromeOptions))
{
// add your code here
}