puppeteer/website/versioned_docs/version-19.7.3/api/puppeteer.waitforselectoroptions.md
release-please[bot] 101fcb994e
chore: release main (#9789)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2023-03-06 14:53:56 +01:00

1.8 KiB

sidebar_label
WaitForSelectorOptions

WaitForSelectorOptions interface

Signature:

export interface WaitForSelectorOptions

Properties

Property Modifiers Type Description Default
hidden? boolean (Optional) 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
timeout? number

(Optional) Maximum time to wait in milliseconds. Pass 0 to disable timeout.

The default value can be changed by using Page.setDefaultTimeout()

30000 (30 seconds)
visible? boolean (Optional) 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