WaitForFunctionOptions

Playwright\Locator\Options\WaitForFunctionOptions

Options for LocatorInterface::waitForFunction(). Element-scoped waiting has no polling interval of its own: unlike the page and frame variants, it re-runs the expression on every animation frame.

Constructor options

OptionTypeDefault Description
timeout ?float null Timeout in ms

Methods

__construct()

function __construct( public ?float $timeout = null, )

toArray()

array
function toArray(): array

from()

self
function from(array|self $options = []): self