Skip to main content
Version: 21.3.1

WaitForSelectorOptions interface

Signature:

export interface WaitForSelectorOptions

Properties

PropertyModifiersTypeDescriptionDefault
hiddenoptionalbooleanWait 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
signaloptionalAbortSignalA signal object that allows you to cancel a waitForSelector call.
timeoutoptionalnumber

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