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

639 B

Home > puppeteer > Frame > $x

Frame.$x() method

This method evaluates the given XPath expression and returns the results.

Signature:

$x(expression: string): Promise<ElementHandle[]>;

Parameters

Parameter Type Description
expression string the XPath expression to evaluate.

Returns:

Promise<ElementHandle[]>