com.codeborne.selenide.SelenideWait Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenide-core Show documentation
Show all versions of selenide-core Show documentation
Selenide = concise API for Selenium WebDriver
package com.codeborne.selenide;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.FluentWait;
import javax.annotation.ParametersAreNonnullByDefault;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@ParametersAreNonnullByDefault
public final class SelenideWait extends FluentWait {
public SelenideWait(WebDriver input, long timeout, long pollingInterval) {
super(input);
withTimeout(Duration.of(timeout, ChronoUnit.MILLIS));
pollingEvery(Duration.of(pollingInterval, ChronoUnit.MILLIS));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy