Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/puppeteer/vendor/puppeteer-core/puppeteer/common/Page.js>Page#$x

A port of puppeteer running on Deno
Latest
method Page.prototype.$x
import { Page } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/common/Page.js";

The method evaluates the XPath expression relative to the page document as its context node. If there are no such elements, the method resolves to an empty array.

Parameters

expression: string
  • Expression to evaluate

Returns

Promise<Array<ElementHandle<any>>>