Click or drag to resize

IDesktopObjectFromPoint Method (Int32, Int32)

Returns the visual object that contains the pixel with the specified coordinates.

Namespace:  SmartBear.TestLeft.TestObjects
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
IObjectTreeNode ObjectFromPoint(
	int x,
	int y
)

Parameters

x
Type: SystemInt32
The horizontal coordinate (relative to the screen) of the desired pixel.
y
Type: SystemInt32
The vertical coordinate (relative to the screen) of the desired pixel.

Return Value

Type: IObjectTreeNode
The onscreen object to which the specified pixel belongs.
Exceptions
ExceptionCondition
InvocationExceptionWill be thrown if invocation fails.
WebExceptionWill be thrown if there are network problems.
See Also