-
-
Save angiejones/e696448ca66e1644ca3347d567605cba to your computer and use it in GitHub Desktop.
Uses Selenium 4 CDP APIs to mock timezone in browser
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
public void overrideTimezone(){ | |
DevTools devtools = driver.getDevTools(); | |
devtools.send(setTimezoneOverride("Europe/London")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment