I am using 3.10.0 + 2.37.543619 + Google 65.0.3325.162

I have a browser that I need when testing:

Browser extension

I am running this code:

  ChromeDriver webDriver = null;
  System.setProperty("webdriver.chrome.driver", new File("chromedriver").getAbsolutePath());
  System.setProperty("webdriver.chrome.logfile", "chromedriver.log");
  System.setProperty("webdriver.chrome.verboseLogging", "true");
  ChromeOptions chromeOptions = new ChromeOptions();
  chromeOptions.addArguments("--enable-logging", "--v=1", "--disable-sand-box");
  chromeOptions.addExtensions(new File("/home/ndipiazza/Downloads/chrome-request-counter.crx"));
  webDriver = new ChromeDriver(chromeOptions);

I am getting the following error:

Starting ChromeDriver 2.37.543619 (a237acd3116cac3b3f0da42a000502ce3fafcb23) on port 6679
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error:  to  for extension   to : chrome-extension://nehbkkpdaccfofjkopcgnlhhgfoabbnc/_generated__page.html
from unknown error: page could not be found: chrome-extension://nehbkkpdaccfofjkopcgnlhhgfoabbnc/_generated__page.html
  (Driver info: chromedriver=2.37.543619 (a237acd3116cac3b3f0da42a000502ce3fafcb23),platform=Linux 4.13.0-37-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.27 seconds
Build info: version: '3.10.0', revision: '176b4a9', time: '2018-03-02T19:03:16.397Z'
System info: host: 'mate', ip: '', os.name: 'Linux', os.arch: 'amd64', os.version: '4.13.0-37-generic', .version: '1.8.0_141'

This works totally fine when using non- chrome.

Looks like a bug so I opened a bug here is the bug

Is there a workaround anyone knows of for this?

Source link https://sqa.stackexchange.com/questions/32611/selenium-chromedriver-headless-chrome-failed-to-wait-for-extension-backgro


Please enter your comment!
Please enter your name here