Page tree
Skip to end of metadata
Go to start of metadata

Note

Touch commands supported in iOS only in instrumented Native zone, Android supports all zones

TouchDownCoordinate

Description

Touch down at X,Y coordinates

Parameters

NameValue
Horizontal CoordinateIntegerHorizontal coordinate
Vertical coordinateIntegerVertical coordinate

TouchMoveCoordinate

Description

Touch move to  to X, Y coordinates, this command should come after touchDownCoordinate or touchDown commands.

Parameters

NameValue
Horizontal CoordinateIntegerHorizontal coordinate
Vertical coordinateIntegerVertical coordinate

TouchUp

Description

Touch Up from last element/coordinate touched down or moved to.

Usage

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the sample code below.

Example

TouchDown Commands
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
     
...
...

seetest.touchDownCoordinate(236, 737);
seetest.touchMoveCoordinate(1200, 1700);
seetest.touchMoveCoordinate(700, 1700);
seetest.touchUp();




  • No labels