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

net.serenitybdd.screenplay.waits.Wait Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.serenitybdd.screenplay.waits;

import net.serenitybdd.screenplay.Question;
import org.hamcrest.Matcher;

import java.util.concurrent.Callable;

public class Wait {

    public static WaitWithTimeout until(Question question, Matcher matcher) {
        return new WaitOnQuestion(question, matcher);
    }

    public static WaitWithTimeout until(Callable expectedState) {
        return new WaitOnSupplier(expectedState);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy