Class Frame.WaitForFunctionOptions

java.lang.Object
com.microsoft.playwright.Frame.WaitForFunctionOptions
Enclosing interface:
Frame

public static class Frame.WaitForFunctionOptions extends Object
  • Field Details

    • pollingInterval

      public Double pollingInterval
      If specified, then it is treated as an interval in milliseconds at which the function would be executed. By default if the option is not specified expression is executed in requestAnimationFrame callback.
    • timeout

      public Double timeout
      Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by using the BrowserContext.setDefaultTimeout() or Page.setDefaultTimeout() methods.
  • Constructor Details

    • WaitForFunctionOptions

      public WaitForFunctionOptions()
  • Method Details

    • setPollingInterval

      public Frame.WaitForFunctionOptions setPollingInterval(double pollingInterval)
      If specified, then it is treated as an interval in milliseconds at which the function would be executed. By default if the option is not specified expression is executed in requestAnimationFrame callback.
    • setTimeout

      public Frame.WaitForFunctionOptions setTimeout(double timeout)
      Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by using the BrowserContext.setDefaultTimeout() or Page.setDefaultTimeout() methods.