Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method ElementHandle.prototype.boundingBox
import { ElementHandle } from "https://deno.land/x/pptr@1.2.0/src/JSHandle.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>