Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 539 Bytes

puppeteer.frame._x.md

File metadata and controls

25 lines (17 loc) · 539 Bytes
sidebar_label
Frame.$x

Frame.$x() method

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

Signature:

class Frame {
  $x(expression: string): Promise<Array<ElementHandle<Node>>>;
}

Parameters

Parameter Type Description
expression string the XPath expression to evaluate.

Returns:

Promise<Array<ElementHandle<Node>>>