Skip to main content
Version: 15.3.0

ElementHandle.waitForSelector() method

Signature:

class ElementHandle {
waitForSelector(
selector: string,
options?: Exclude<WaitForSelectorOptions, 'root'>
): Promise<ElementHandle | null>;
}

Parameters

ParameterTypeDescription
selectorstring
optionsExclude<WaitForSelectorOptions, 'root'>(Optional)

Returns:

Promise<ElementHandle | null>