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

x/pptr/mod.ts>ElementHandle#boundingBox

Headless Chrome Deno API
Latest
method ElementHandle.prototype.boundingBox
Re-export
import { ElementHandle } from "https://deno.land/x/pptr@1.2.0/mod.ts";

This method returns the bounding box of the element (relative to the main frame), or null if the element is not visible.

Returns

Promise<BoundingBox | null>