Class Page.AddLocatorHandlerOptions

  • Enclosing interface:
    Page

    public static class Page.AddLocatorHandlerOptions
    extends Object
    • Field Detail

      • noWaitAfter

        public Boolean noWaitAfter
        By default, after calling the handler Playwright will wait until the overlay becomes hidden, and only then Playwright will continue with the action/assertion that triggered the handler. This option allows to opt-out of this behavior, so that overlay can stay visible after the handler has run.
      • times

        public Integer times
        Specifies the maximum number of times this handler should be called. Unlimited by default.
    • Constructor Detail

      • AddLocatorHandlerOptions

        public AddLocatorHandlerOptions()
    • Method Detail

      • setNoWaitAfter

        public Page.AddLocatorHandlerOptions setNoWaitAfter​(boolean noWaitAfter)
        By default, after calling the handler Playwright will wait until the overlay becomes hidden, and only then Playwright will continue with the action/assertion that triggered the handler. This option allows to opt-out of this behavior, so that overlay can stay visible after the handler has run.
      • setTimes

        public Page.AddLocatorHandlerOptions setTimes​(int times)
        Specifies the maximum number of times this handler should be called. Unlimited by default.