Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created October 31, 2020 19:22
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