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

    Constructors
    Constructor Description
    WaitFor()
    Default constructor required by Screenplay
    WaitFor​(Target target)  
  • Method Summary

    Modifier and Type Method Description
    Performable andThen​(java.util.function.Consumer<com.microsoft.playwright.ElementHandle> nextAction)  
    <T extends Actor>
    void
    performAs​(T actor)  
    static WaitFor selector​(java.lang.String selector)  
    static WaitFor selector​(Target target)
    Wait for an element to be in a given state.
    WaitFor withOptions​(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 Details

    • WaitFor

      public WaitFor()
      Default constructor required by Screenplay
    • WaitFor

      public WaitFor​(Target target)
  • Method Details

    • selector

      public static WaitFor selector​(java.lang.String selector)
    • selector

      public static WaitFor selector​(Target target)
      Wait for an element to be in a given state.
    • withOptions

      public WaitFor withOptions​(com.microsoft.playwright.Page.WaitForSelectorOptions options)
    • performAs

      public <T extends Actor> void performAs​(T actor)
      Specified by:
      performAs in interface Performable
    • andThen

      public Performable andThen​(java.util.function.Consumer<com.microsoft.playwright.ElementHandle> nextAction)