For AI agents: a documentation index is available at /llms.txt
Skip to main content

WaitForFunctionOptions

Properties

PropertyTypeDescription
completeOnPromiseResolution?booleanResolve after an async predicate promise settles, regardless of its return value.
polling?numberThe interval, in milliseconds, at which the predicate is re-evaluated. Defaults to 100ms
pollingType?WaitForFunctionPollingA browser-driven polling mode. Use this instead of polling for raf or mutation behavior.
timeout?numberThe maximum amount of time, in milliseconds, to wait for the predicate to become truthy, overriding any defaults. Default timeout is 30 seconds, or 30000.