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

677 B

Home > puppeteer > Frame > waitForXPath

Frame.waitForXPath() method

Signature:

waitForXPath(xpath: string, options?: WaitForSelectorOptions): Promise<ElementHandle | null>;

Parameters

Parameter Type Description
xpath string
options WaitForSelectorOptions

Returns:

Promise<ElementHandle | null>