ChromeEmulationInfo method

Class: ChromeEmulationInfoPlatform: Selenium 3Language: Java SDK:

Objects of this class are used to configure the Ultrafast Grid so that it renders checkpoints of a test for a device, where the device is defined by brand name. The list of supported devices is defined by DeviceName.

One or more instances of this class are passed to addDeviceEmulation in order to configure the devices for which checkpoints are rendered on the Ultrafast Grid.

Syntax


ChromeEmulationInfo obj = new ChromeEmulationInfo(deviceName, screenOrientation);

Parameters

deviceName
Type:DeviceName
The name of the device, a value from the set of devices defined by DeviceName.
screenOrientation
Type:ScreenOrientation
If the device should be rendered in portrait (vertical) or landscape (horizontal) orientation.

Return value

Type: ChromeEmulationInfo

Remarks

The viewport width and height used to identify the baseline, is defined implicitly by the screen characteristics of the device.