Created
May 11, 2023 21:06
-
-
Save tkhorik/54892a123f45c18feb240c1d45e5c9f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ChromeOptions options = new ChromeOptions(); | |
| options.addArguments("--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15"); | |
| clearBrowserCookies(); | |
| Configuration.browserCapabilities.setCapability(ChromeOptions.CAPABILITY, options); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment