Type alias WaitForFunctionActionOptions

WaitForFunctionActionOptions: {
    polling?: number | "raf";
    timeout?: number;
}

Type declaration

  • Optional polling?: number | "raf"

    If polling is 'raf', then pageFunction is constantly executed in requestAnimationFrame callback. If polling is a number, then it is treated as an interval in milliseconds at which the function would be executed. Defaults to raf.

  • Optional timeout?: number

    Maximum time to wait for in milliseconds. Defaults to 0 - no timeout. The default value can be changed via actionTimeout option in the config, or by using the browserContext.setDefaultTimeout(timeout) or page.setDefaultTimeout(timeout) methods.