Skip to content

Commit

Permalink
Disable DNS prefetch for Selenium in CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraLS3 committed Dec 7, 2024
1 parent 6d1c584 commit 46e059e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Plan/common/src/test/java/extension/SeleniumExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ private ChromeDriver getChromeWebDriver() {
if (System.getenv(CIProperties.CHROME_DRIVER) != null) {
chromeOptions.setBinary("/usr/bin/google-chrome-stable");
chromeOptions.addArguments("--headless=new");
chromeOptions.addArguments("--dns-prefetch-disable");
}

return new ChromeDriver(chromeOptions);
Expand Down

0 comments on commit 46e059e

Please sign in to comment.