puppeteer/new-docs/puppeteer.frame._.md
Jack Franklin 24cb6a28ad
chore(docs): document Frame class (#6188)
* chore: document Frame class
2020-07-09 14:22:58 +01:00

709 B

Home > puppeteer > Frame > $

Frame.$() method

This method queries the frame for the given selector.

Signature:

$(selector: string): Promise<ElementHandle | null>;

Parameters

Parameter Type Description
selector string a selector to query for.

Returns:

Promise<ElementHandle | null>

A promise which resolves to an ElementHandle pointing at the element, or null if it was not found.