Skip to main content

DesktopBrowserInfo class

Objects of this class are used to configure the Ultrafast Grid to render checkpoints by rendering them on a particular desktop browser.

Import statement

from applitools.selenium import DesktopBrowserInfo

DesktopBrowserInfo method

Syntax

obj = DesktopBrowserInfo(width, height, browser_type, baseline_env_name)

obj = DesktopBrowserInfo(width, height, browser_type)

obj = DesktopBrowserInfo(width, height)

Parameters

width

Type: int

The width of the browser viewport for this target. The maximum viewport width for all browsers is 5120. If this limit is exceeded, then execution of the checkpoint will fail.

height

Type: int

The height of the browser viewport for this target. There is no height limit.

browser_type

Type: BrowserType [Optional : default = BrowserType.CHROME ]

The browser type, a value from the set of supported devices defined by the type BrowserType.

baseline_env_name

Type: Text [Optional : default = None ]

The name of the baseline environment. If provided, then the viewport, host app (browser), and OS that define the baseline are defined by the baseline environment name and not by the execution environment. The name should already be defined in the Test Manager. If it is not defined, then it will be created based on the execution environment of the first test that uses that name. For more information see Running cross-environment tests.

Return value

Type: None

platform property

Syntax

value = obj.platform

Type: Text