Skip to main content
Version: Next

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>