mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
803 B
803 B
Page.$$() method
The method runs document.querySelectorAll
within the page. If no elements match the selector, the return value resolves to []
.
Signature:
$$<T extends Element = Element>(selector: string): Promise<Array<ElementHandle<T>>>;
Parameters
Parameter | Type | Description |
---|---|---|
selector | string | A selector to query page for |
Returns:
Promise<Array<ElementHandle<T>>>
Remarks
Shortcut for Page.mainFrame().$$(selector).