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
Set Experitest Url
Please make sure you replace <EXPERITEST_URL> with appropriate URL in the sample code below.
- For SeeTest cloud, EXPERITEST_URL needs to be https://cloud.seetest.io/wd/hub/
- For Dedicated Experitest Lab, EXPERITEST_URL needs to be your own domain. e.g - https://company.experitest.com
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();