Class WaitFor
- java.lang.Object
-
- net.serenitybdd.screenplay.playwright.interactions.WaitFor
-
- All Implemented Interfaces:
SkipNested,Performable
public class WaitFor extends Object implements Performable
Wait for some element or state. Sample usage:WaitFor.selector("#searchbutton");
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PerformableandThen(Consumer<com.microsoft.playwright.ElementHandle> nextAction)<T extends Actor>
voidperformAs(T actor)static WaitForselector(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, wait
-
Methods inherited from interface net.serenitybdd.screenplay.Performable
then
-
-
-
-
Constructor Detail
-
WaitFor
public WaitFor()
Default constructor required by Screenplay
-
WaitFor
public WaitFor(Target target)
-
-
Method Detail
-
withOptions
public WaitFor withOptions(com.microsoft.playwright.Page.WaitForSelectorOptions options)
-
performAs
public <T extends Actor> void performAs(T actor)
- Specified by:
performAsin interfacePerformable
-
andThen
public Performable andThen(Consumer<com.microsoft.playwright.ElementHandle> nextAction)
-
-