Skip to content

Commit

Permalink
headless
Browse files Browse the repository at this point in the history
  • Loading branch information
xunliu committed Jan 24, 2024
1 parent 1ee407c commit c272772
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public WebDriver createWebDriver(String webDriverPath, String downloadPath) {
ITUtils.joinPath(downLoadDir, chromeBinName, "Contents", "MacOS", "Chromium"));
} else {
chromeOptions.setBinary(ITUtils.joinPath(downLoadDir, chromeBinName));
chromeOptions.addArguments("--headless");
// chromeOptions.addArguments("--no-sandbox");
// chromeOptions.addArguments("--disable-dev-shm-usage");
}

return new ChromeDriver(chromeOptions);
Expand Down

0 comments on commit c272772

Please sign in to comment.