Skip to main content
Version: Next

Frame.waitForSelector() method

Signature:

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

Parameters

ParameterTypeDescription
selectorstring
optionsWaitForSelectorOptions(Optional)

Returns:

Promise<ElementHandle | null>