/MockTimezone.java Secret
Created
October 31, 2020 19:22
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