puppeteer/docs/api/puppeteer.waitforselectoroptions.md
dependabot[bot] 93e9acc410
chore(deps-dev): Bump the dev-dependencies group with 3 updates (#12101)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
2024-03-20 15:03:14 +00:00

1.3 KiB

sidebar_label
WaitForSelectorOptions

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, i.e. have display: none or visibility: hidden CSS properties.

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()

30_000 (30 seconds)

visible

optional

boolean

Wait for the selected element to be present in DOM and to be visible, i.e. to not have display: none or visibility: hidden CSS properties.

false