Machine].
Obtain via [Machine.screens], [Machine.mainScreen],
[Machine.screenFromMouse], or [Window.screen]. A handle pins work to
one display: two [Screen.screenshot] calls on the same handle always
capture the same display, unlike re-resolving the cursor’s screen
between captures.
Constructor
Returns
Screen
Methods
boundingBox()
(0, 0), in the canonical
coordinate space (OS-native units; see [Machine]). Monitors
arranged to the left of or above the primary display contribute
negative left / top. right and bottom are exclusive
(Playwright / DOM convention), matching [Window.boundingBox].
For just the size, read right - left and bottom - top on the
returned box.
Returns
BoundingBox
screenshot()
hideCursor is ignored — a phone has no cursor.
Parameters
boolean
required
Returns
Screenshot
