Skip to main content

IosDeviceInfo class

Objects of this class are used to configure the Ultrafast Grid to render checkpoint images.

Import statement

from applitools.selenium import IosDeviceInfo

IosDeviceInfo method​

Syntax​

obj = IosDeviceInfo(device_name, screen_orientation, ios_version, baseline_env_name)

obj = IosDeviceInfo(device_name, screen_orientation, ios_version)

obj = IosDeviceInfo(device_name, screen_orientation)

obj = IosDeviceInfo(device_name)

Parameters​

device_name

Type: IosDeviceName

One of the devices from the enumerated type of this parameter

screen_orientation

Type: ScreenOrientation [Optional : default = ScreenOrientation.PORTRAIT ]

The orientation of the device (portait or landscape). If this parameter is not provided then the default is ScreenOrientation.PORTRAIT

ios_version

Type: IosVersion [Optional : default = None ]

The iOS version to use when rendering the checkpoint for this device.

baseline_env_name

Type: Text [Optional : default = None ]

The name of the baseline environment.

Return value​

Type: IosDeviceInfo

ios_version property​

Syntax​

obj.ios_version  = value
value = obj.ios_version

Type: IosVersion

browser property​

Syntax​

value = obj.browser

Type: Text

height property​

Syntax​

value = obj.height

Type: int

platform property​

Syntax​

value = obj.platform

Type: Text

viewport_size property​

Syntax​

value = obj.viewport_size

Type: RectangleSize

width property​

Syntax​

value = obj.width

Type: int

device_name property​

Syntax​

obj.device_name  = value
value = obj.device_name

Type: DeviceName

screen_orientation property​

Syntax​

obj.screen_orientation  = value
value = obj.screen_orientation

Type: ScreenOrientation