Skip to content

Commit

Permalink
fix: disable chrome search engine selection (#1818)
Browse files Browse the repository at this point in the history
Fixes #1817
  • Loading branch information
sissbruecker authored Aug 23, 2024
1 parent 4fb60d8 commit c59547a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ static public WebDriver createDriver(
}
driver = new FirefoxDriver(options);
} else if (BrowserUtil.isChrome(desiredCapabilities)) {
ChromeOptions options = new ChromeOptions();
// Tells chrome not to show warning
// "You are using an unsupported command-line flag:
// --ignore-certifcate-errors".
// #14319
ChromeOptions options = new ChromeOptions();
options.addArguments("--test-type ");
// Disable search engine choice screen
options.addArguments("--disable-search-engine-choice-screen");

if (Parameters.isHeadless()) {
options.addArguments("--headless=new");
Expand Down

0 comments on commit c59547a

Please sign in to comment.