Created
June 4, 2022 07:15
-
-
Save eliasnogueira/5a315ee105b6b8e611c7c06090aca1c4 to your computer and use it in GitHub Desktop.
Snippet of getOptions method in ChromeManager class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public ChromeOptions getOptions() { | |
ChromeOptions chromeOptions = new ChromeOptions(); | |
chromeOptions.addArguments("--start-maximized"); | |
chromeOptions.addArguments("--disable-infobars"); | |
chromeOptions.addArguments("--disable-notifications"); | |
chromeOptions.setHeadless(configuration().headless()); | |
return chromeOptions; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment