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
Name | Value | |
---|---|---|
Horizontal Coordinate | Integer | Horizontal coordinate |
Vertical coordinate | Integer | Vertical coordinate |
TouchMoveCoordinate
Description
Touch move to to X, Y coordinates, this command should come after touchDownCoordinate or touchDown commands.
Parameters
Name | Value | |
---|---|---|
Horizontal Coordinate | Integer | Horizontal coordinate |
Vertical coordinate | Integer | Vertical coordinate |
TouchUp
Description
Touch Up from last element/coordinate touched down or moved to.
Usage
info
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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();