ScreenToWindow Method (Mobile Objects)

Applies to TestComplete 14.72, last modified on December 24, 2020

Description

Use this method to get object-related coordinates from coordinates that are relative to the mobile device's screen.

Declaration

TestObj.ScreenToWindow(XY)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
X [in]    Required    Integer    
Y [in]    Required    Integer    
Result A Point object

Applies To

All Android, iOS and Xamarin.Forms objects

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The method has the following parameters:

X

Specifies the horizontal coordinate of the point relative to the mobile device's screen.

Y

Specifies the vertical coordinate of the point relative to the mobile device's screen.

Result Value

The Point object that contains the resultant object-related coordinates.

See Also

Testing Android Applications
Testing iOS Applications
Point Object
WindowToScreen Method (Mobile Objects)

Highlight search results