Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 754 Bytes

puppeteer.page.waitforselector.md

File metadata and controls

27 lines (18 loc) · 754 Bytes

Home > puppeteer > Page > waitForSelector

Page.waitForSelector() method

Signature:

waitForSelector(selector: string, options?: {
        visible?: boolean;
        hidden?: boolean;
        timeout?: number;
    }): Promise<ElementHandle | null>;

Parameters

Parameter Type Description
selector string
options { visible?: boolean; hidden?: boolean; timeout?: number; }

Returns:

Promise<ElementHandle | null>