Can not start Chrome in Headless Mode

764 Views Asked by At

I am trying to use the Chrome Headless mode on Selenium Webdriver to test a script with different arguments I get
NoSuchElementException - when finding by xpath
chrome not reachable - webdriverexception
chrome failed to start -

ChromeOptions options = new ChromeOptions();
options.addArguments("--headless","--disable-gpu");
webDriver = new ChromeDriver(options);

this is the initialization.

No problem with the xpath as it is working on Normal mode.

  • Chrome version 60

  • Selenium 3.5.0

  • Chrome driver 2.32

0

There are 0 best solutions below