Home > puppeteer > Page > waitForXPath
Signature:
waitForXPath(xpath: string, options?: {
visible?: boolean;
hidden?: boolean;
timeout?: number;
}): Promise<ElementHandle | null>;
Parameter | Type | Description |
---|---|---|
xpath | string | |
options | { visible?: boolean; hidden?: boolean; timeout?: number; } |
Returns:
Promise<ElementHandle | null>