Class Page.WaitForFunctionOptions

  • Enclosing interface:
    Page

    public static class Page.WaitForFunctionOptions
    extends Object
    • Field Detail

      • 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().
    • Constructor Detail

      • WaitForFunctionOptions

        public WaitForFunctionOptions()
    • Method Detail

      • 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.