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.

Using statement

using Applitools.VisualGrid;

DesktopBrowserInfo method

Syntax

DesktopBrowserInfo obj = new DesktopBrowserInfo(viewportSize, browserType, baselineEnvName);

DesktopBrowserInfo obj = new DesktopBrowserInfo(viewportSize, browserType);

DesktopBrowserInfo obj = new DesktopBrowserInfo(viewportSize);

DesktopBrowserInfo obj = new DesktopBrowserInfo(width, height, browserType, baselineEnvName);

DesktopBrowserInfo obj = new DesktopBrowserInfo(width, height, browserType);

DesktopBrowserInfo obj = new DesktopBrowserInfo(width, height);

Parameters

viewportSize

Type: Size

The viewport size of the browser, this can impact the layout of the page. The maximum viewport width for all browsers is 5120. If this limit is exceeded, then execution of the checkpoint will fail.

browserType

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

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

baselineEnvName

Type: string [Optional : default = null ]

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.

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.

Return value

Type: DesktopBrowserInfo

BaselineEnvName property

Syntax

string value = obj.BaselineEnvName;

Type: string

BrowserType property

Syntax

BrowserType value = obj.BrowserType;

Type: BrowserType

Height property

Syntax

int value = obj.Height;

Type: int

ViewportSize property

Syntax

Size value = obj.ViewportSize;

Type: Size

Width property

Syntax

int value = obj.Width;

Type: int