Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created Oct 31, 2020
Embed
What would you like to do?
Uses Selenium 4 CDP APIs to mock timezone in browser
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