The information in this topic may be out of date. The current SDK reference guide has moved here.

addDeviceEmulation method

Class: ConfigurationPlatform: Selenium 4Language: JavaScript SDK:

Request that the checkpoint be rendered by the Ultrafast Grid using Chrome mobile emulation.


let configval = config.addDeviceEmulation(deviceName, screenOrientation);

let configval = config.addDeviceEmulation(deviceName);


The name of the device, from the list of devices defined by DeviceName.
Type:ScreenOrientation [Optional ]
Whether the device is in portrait or landscape mode.

Return value

Type: Configuration
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of the Configuration class.