[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [$$](./puppeteer.page.__.md)
## Page.$$() method
The method runs `document.querySelectorAll` within the page. If no elements match the selector, the return value resolves to `[]`.
Signature:
```typescript
$$(selector: string): Promise>>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| selector | string | A selector
to query page for |
Returns:
Promise<Array<[ElementHandle](./puppeteer.elementhandle.md)<T>>>
## Remarks
Shortcut for [Page.mainFrame().$$(selector)](./puppeteer.frame.__.md).