WaitForSelectorOptions interface

Signature

export interface WaitForSelectorOptions

Properties

Property Modifiers Type Description Default
hidden `optional` boolean Wait for the selected element to not be found in the DOM or to be hidden. See [ElementHandle.isHidden()](./puppeteer.elementhandle.ishidden.md) for the definition of element invisibility. `false`
signal `optional` AbortSignal A signal object that allows you to cancel a waitForSelector call.
timeout `optional` number Maximum time to wait in milliseconds. Pass `0` to disable timeout. The default value can be changed by using [Page.setDefaultTimeout()](./puppeteer.page.setdefaulttimeout.md) `30_000` (30 seconds)
visible `optional` boolean Wait for the selected element to be present in DOM and to be visible. See [ElementHandle.isVisible()](./puppeteer.elementhandle.isvisible.md) for the definition of element visibility. `false`