Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method JSHandle.prototype.getProperties
Re-export
import { JSHandle } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.d.ts";

Gets a map of handles representing the properties of the current handle.

Examples

Example 1

const listHandle = await page.evaluateHandle(() => document.body.children);
const properties = await listHandle.getProperties();
const children = [];
for (const property of properties.values()) {
  const element = property.asElement();
  if (element) {
    children.push(element);
  }
}
children; // holds elementHandles to all children of document.body

Returns

Promise<Map<string, JSHandle>>