chromeEmulationInfo property

Class: ChromeEmulationInfoPlatform: Selenium 4Language: JavaScript SDK:

Create an object that can be used to configure the Ultrafast Grid to render checkpoints by emulating a device using Chrome mobile emulation.

Pass an instances of this class to addBrowser in order to configure the mobile device defined by the parameters to the method.

Syntax

obj = { chromeEmulationInfo: value };

Type:

{
  deviceName: DeviceNamePlain;
  screenOrientation?: ScreenOrientationPlain;
};

Type definitions

DeviceNamePlain
This type allows passing strings instead of enumerated values, for the list of enum values see DeviceName.
ScreenOrientationPlain
This type allows passing strings instead of enumerated values, for the list of enum values see ScreenOrientation.

Remarks

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