Class WaitFor

  • All Implemented Interfaces:
    SkipNested, Performable

    public class WaitFor
    extends Object
    implements Performable
    Wait for some element or state. Sample usage:
         WaitFor.selector("#searchbutton");
     
    • Constructor Detail

      • WaitFor

        public WaitFor()
        Default constructor required by Screenplay
      • WaitFor

        public WaitFor​(Target target)
    • Method Detail

      • 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)
      • andThen

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