C# Selenium - headless browser C# Selenium - headless browser selenium selenium

C# Selenium - headless browser


I had the same issue in past where script did not work in headless and I found out it was due to default resolution. You can try adding

options.addArguments("window-size=1920,1080");

Worth trying!