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).