Class WaitFor
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.WaitFor
- All Implemented Interfaces:
SkipNested,Performable
public class WaitFor extends java.lang.Object implements Performable
Wait for some element or state.
Sample usage:
WaitFor.selector("#searchbutton");
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description PerformableandThen(java.util.function.Consumer<com.microsoft.playwright.ElementHandle> nextAction)<T extends Actor>
voidperformAs(T actor)static WaitForselector(java.lang.String selector)static WaitForselector(Target target)Wait for an element to be in a given state.WaitForwithOptions(com.microsoft.playwright.Page.WaitForSelectorOptions options)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.serenitybdd.screenplay.Performable
then
-
Constructor Details
-
WaitFor
public WaitFor()Default constructor required by Screenplay -
WaitFor
-
-
Method Details
-
selector
-
selector
Wait for an element to be in a given state. -
withOptions
-
performAs
- Specified by:
performAsin interfacePerformable
-
andThen
public Performable andThen(java.util.function.Consumer<com.microsoft.playwright.ElementHandle> nextAction)
-