Skip to content

emulateDevice()

Overrides the values of device screen dimensions according to a predefined list of devices. To provide custom device dimensions, use setViewPort API.

await emulateDevice('iPhone 6')
Name Type Description
deviceModel string See device model for a list of all device models.
Type Description
Promise<void>