Taiko
Documentation

Home / API Reference

emulateDevice

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

Examples

await emulateDevice('iPhone 6')

Parameters


deviceModel

See device model for a list of all device models.


Returns

Promise<void>