Skip to content

Commit

Permalink
chore:update method
Browse files Browse the repository at this point in the history
  • Loading branch information
ZheSun88 committed Jan 8, 2024
1 parent 1840120 commit 727ac08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void setup() throws Exception {
if (getDesiredCapabilities().getBrowserName().equals(Browser.CHROME.browserName())
&& Boolean.getBoolean("headless")) {
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setHeadless(true);
chromeOptions.addArguments("--headless=new");
setDriver(new ChromeDriver(chromeOptions));
} else {
super.setup();
Expand Down

0 comments on commit 727ac08

Please sign in to comment.