Click or drag to resize
Ranorex

IWebDriverExtensionsSetPosition Method

Sets the position for the browser window associated with this driver instance.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Plugin.WebDriver (in Ranorex.Plugin.WebDriver.dll) Version: 12.7.4-git.38314c06
Syntax
public static void SetPosition(
	this IWebDriver driver,
	Point position
)

Parameters

driver
Type: IWebDriver
The driver instance
position
Type: System.DrawingPoint
The position of the top left browser corner in pixels.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWebDriver. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionif driver is null
Remarks
This method is not supported by all browsers and/or selenium vendors/versions.
See Also