MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Wait

Interface Wait

java/src/org/openqa/selenium/support/ui/Wait.java:30–46  ·  view source on GitHub ↗

A generic interface for waiting until a condition is true or not null. The condition may take a single argument of type . @param the argument to pass to any function called

Source from the content-addressed store, hash-verified

28 * @param <F> the argument to pass to any function called
29 */
30public interface Wait<F> {
31
32 /**
33 * Implementations should wait until the condition evaluates to a value that is neither null nor
34 * false. Because of this contract, the return type must not be Void.
35 *
36 * <p>If the condition does not become true within a certain time (as defined by the implementing
37 * class), this method will throw a non-specified {@link Throwable}. This is so that an
38 * implementor may throw whatever is idiomatic for a given test infrastructure (e.g. JUnit4 would
39 * throw {@link AssertionError}).
40 *
41 * @param <V> the return type of the method, which must not be Void
42 * @param isTrue the parameter to pass to the {@link ExpectedCondition}
43 * @return truthy value from the isTrue condition
44 */
45 <V extends @Nullable Object> @NonNull V until(Function<? super F, ? extends V> isTrue);
46}

Callers 4

SendKeyDownMessageMethod · 0.50
SendKeyUpMessageMethod · 0.50

Implementers 3

Waitrb/lib/selenium/webdriver/common/wait.
FluentWaitjava/src/org/openqa/selenium/support/u
WebDriverWaitpy/selenium/webdriver/support/wait.py

Calls

no outgoing calls

Tested by

no test coverage detected