puppeteer/website/versioned_docs/version-9.1.1/puppeteer.elementhandle.boundingbox.md
2021-08-10 11:09:48 +01:00

574 B

Home > puppeteer > ElementHandle > boundingBox

ElementHandle.boundingBox() method

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

Signature:

boundingBox(): Promise<BoundingBox | null>;

Returns:

Promise<BoundingBox | null>