All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codeborne.selenide.SelenideWait Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
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