[java] Removing deprecated WebDriverWait methods
public class WebDriverWait extends FluentWait<WebDriver> {
private final WebDriver driver;
- /**
- * Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
- * the 'until' condition, and immediately propagate all others. You can add more to the ignore
- * list by calling ignoring(exceptions to add).
- *
- * @param driver The WebDriver instance to pass to the expected conditions
- * @param timeoutInSeconds The timeout in seconds when an expectation is called
- * @see WebDriverWait#ignoring(java.lang.Class)
- * @deprecated Instead, use {@link WebDriverWait#WebDriverWait(WebDriver, Duration)}.
- */
- @Deprecated
- public WebDriverWait(WebDriver driver, long timeoutInSeconds) {
- this(driver, Duration.ofSeconds(timeoutInSeconds));
- }
-
/**
* Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
* the 'until' condition, and immediately propagate all others. You can add more to the ignore
@@ -66,22 +51,6 @@ public WebDriverWait(WebDriver driver, Duration timeout) {
Sleeper.SYSTEM_SLEEPER);
}
- /**
- * Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
- * the 'until' condition, and immediately propagate all others. You can add more to the ignore
- * list by calling ignoring(exceptions to add).
- *
- * @param driver The WebDriver instance to pass to the expected conditions
- * @param timeoutInSeconds The timeout in seconds when an expectation is called
- * @param sleepInMillis The duration in milliseconds to sleep between polls.
- * @see WebDriverWait#ignoring(java.lang.Class)
- * @deprecated Instead, use {@link WebDriverWait#WebDriverWait(WebDriver, Duration, Duration)}.
- */
- @Deprecated
- public WebDriverWait(WebDriver driver, long timeoutInSeconds, long sleepInMillis) {
- this(driver, Duration.ofSeconds(timeoutInSeconds), Duration.ofMillis(sleepInMillis));
- }
-
/**
* Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
* the 'until' condition, and immediately propagate all others. You can add more to the ignore
@@ -96,26 +65,6 @@ public WebDriverWait(WebDriver driver, Duration timeout, Duration sleep) {
this(driver, timeout, sleep, Clock.systemDefaultZone(), Sleeper.SYSTEM_SLEEPER);
}
- /**
- * @param driver the WebDriver instance to pass to the expected conditions
- * @param clock used when measuring the timeout
- * @param sleeper used to make the current thread go to sleep
- * @param timeoutInSeconds the timeout in seconds when an expectation is called
- * @param sleepInMillis the timeout in millis used whilst sleeping
- * @deprecated Instead, use {@link WebDriverWait#WebDriverWait(WebDriver, Duration, Duration,
- * Clock, Sleeper)}.
- */
- @Deprecated
- public WebDriverWait(
- WebDriver driver, Clock clock, Sleeper sleeper, long timeoutInSeconds, long sleepInMillis) {
- this(
- driver,
- Duration.ofSeconds(timeoutInSeconds),
- Duration.ofMillis(sleepInMillis),
- clock,
- sleeper);
- }
-
/**
* @param driver the WebDriver instance to pass to the expected conditions
* @param clock used when measuring the timeout
