1

Our framework uses “basic authenticator” extension that automatically takes care of authentication dialogs. The problem is that when attempting to run tests in headless mode, chromedriver crashes with following error:

org.openqa.selenium.WebDriverException: unknown error: failed to wait for extension background page to load: chrome-extension://paomkgjogbncmncdnconbommejfdhaoh/_generated_background_page.html from unknown error: page could not be found: chrome-extension://paomkgjogbncmncdnconbommejfdhaoh/_generated_background_page.html

ChromeOptions options = new ChromeOptions();
options.addExtensions(new File(“authenticator”));
options.setHeadless(true);
WebDriver chrome = new ChromeDriver(options);
Yulaz
  • 81
  • 8

1 Answers1

0

Chrome doesn't accept extensions in headless mode.

Consider switching the extensions off, or using Firefox.

Mate Mrše
  • 7,997
  • 10
  • 40
  • 77