BrowserTranslateBrowserOffset Method

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Translates an offset from one browser to another. Useful because offset values recorded in Internet Explorer are typically two pixels different from offset values for the same relative point in other browsers.

Namespace:  ArtOfTest.WebAii.Core
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

public static Point TranslateBrowserOffset(
	BrowserType sourceBrowser,
	BrowserType destinationBrowser,
	Point sourceOffset
)

Parameters

sourceBrowser
Type: ArtOfTest.WebAii.CoreBrowserType
The BrowserType the offset was originally intended for
destinationBrowser
Type: ArtOfTest.WebAii.CoreBrowserType
The BrowserType to translate the offset to
sourceOffset
Type: System.DrawingPoint
The original offset value

Return Value

Type: Point
A translated offset value. The offset is translated two pixels left and up when translating from Internet Explorer to any other browser, and translated two pixels down and right when translating from any other browser to Internet Explorer.
See Also

Reference