Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/puppeteer/mod.ts>JSHandle#asElement

A port of puppeteer running on Deno
Latest
method JSHandle.prototype.asElement
Re-export
import { JSHandle } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";

Returns

ElementHandle<any> | null

Either null or the handle itself if the handle is an instance of ElementHandle.