Skip to content

Commit

Permalink
Remove unused timezone method from SeleniumExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraLS3 committed Feb 22, 2025
1 parent 60e16cc commit 3e869eb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Plan/common/src/test/java/extension/SeleniumExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@
package extension;

import org.apache.commons.lang3.SystemUtils;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.extension.*;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.devtools.DevTools;
import org.openqa.selenium.devtools.v130.emulation.Emulation;
import org.openqa.selenium.logging.LogType;
import org.openqa.selenium.logging.LoggingPreferences;
import org.awaitility.Awaitility;
import utilities.CIProperties;

import java.io.File;
Expand Down Expand Up @@ -102,13 +100,6 @@ private ChromeDriver getChromeWebDriver() {
return new ChromeDriver(chromeOptions);
}

public static void setTimeZone(ChromeDriver chromeDriver, String timeZone) {
try (DevTools devTools = chromeDriver.getDevTools()) {
devTools.createSession();
devTools.send(Emulation.setTimezoneOverride(timeZone));
}
}

private LoggingPreferences getLoggingPreferences() {
LoggingPreferences logPrefs = new LoggingPreferences();
logPrefs.enable(LogType.PERFORMANCE, Level.INFO);
Expand Down

0 comments on commit 3e869eb

Please sign in to comment.