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);