Skip to main content
Returns the bounding box of the element in pixels, relative to the main frame’s viewport. Returns null if the element is not visible.

Definition

Returns

BoundingBox Represents the bounding box of an element on the page. All coordinates and dimensions are in CSS pixels, relative to the top-left of the viewport.

Usage

This field is available on the Page object. Use it to query page information and content.