Class Page.WaitForFunctionOptions

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

public static class Page.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 Page.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 Page.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.