Skip to main content

TouchCoordinate Commands

info

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

info

Replace <server> with the appropriate URL.

TouchDown Commands

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

...
...

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