puppeteer/website/versioned_docs/version-9.1.1/puppeteer.frame._x.md
2021-08-10 11:09:48 +01:00

607 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[]>