puppeteer/new-docs/puppeteer.frame.waitforselector.md

654 B

Home > puppeteer > Frame > waitForSelector

Frame.waitForSelector() method

Signature:

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

Parameters

Parameter Type Description
selector string
options WaitForSelectorOptions

Returns:

Promise<ElementHandle | null>