addDeviceEmulation method
Request that the Ultrafast Grid generate checkpoint images for a specific device using Chrome mobile emulation.
Syntax
let configval = config.addDeviceEmulation(deviceName, screenOrientation);
let configval = config.addDeviceEmulation(deviceName);
Parameters
- deviceName
- Type:DeviceName
- The name of the device, from the list of devices defined by DeviceName.
- screenOrientation
- Type:ScreenOrientation [Optional : default = ScreenOrientation.PORTRAIT ]
- 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.