rect
Get an element's bounding box coordinates to define screenshot clip regions using a snapshot ref or CSS selector.
Instructions
Bounding box of an element (for screenshot clip).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ref from snapshot, e.g. e3 | |
| tab | No | tab id, defaults to current | |
| selector | No | CSS selector | |
| request_timeout | No | Outer page request deadline in milliseconds; defaults to at least 30000 |