Skip to content

waygraph / DeviceOptions

Interface: DeviceOptions ​

Defined in: src/engine/flow/device.ts:8

A device by its parts: a named one turned ({ preset: "mobile", orientation: "landscape" }), or a size of your own.

Properties ​

height? ​

optional height?: number

Defined in: src/engine/flow/device.ts:13


orientation? ​

optional orientation?: "portrait" | "landscape"

Defined in: src/engine/flow/device.ts:15

Which way round: "portrait" (tall) or "landscape" (wide). Default the preset's (a phone portrait, a desktop landscape).


preset? ​

optional preset?: DeviceName

Defined in: src/engine/flow/device.ts:10

The device it starts from. Default "desktop".


touch? ​

optional touch?: boolean

Defined in: src/engine/flow/device.ts:17

A touch screen (taps instead of clicks). Default the preset's: a phone and a tablet are touch.


width? ​

optional width?: number

Defined in: src/engine/flow/device.ts:12

A size of your own (both, or the preset's).

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed