Touch Commands
info
Note Touch commands supported in iOS only in instrumented Native zone, Android supports all zones
TouchDown
Description
Touch down on element.
Parameters
Name | Value | Description |
---|---|---|
Zone | * NATIVE * WEB * TEXT | Zones which define the way the element will be identified. |
Element | Element Identifier as String | Identification of Element in the device screen. Identification can be XPATH or any other Appium Element Identifier |
Index | Element index as Integer | Index of Element |
TouchMove
Description
Touch move to element, this command should come after touchDown or touchDownCoordinate commands.
Parameters
Name | Value | Description |
---|---|---|
Zone | * NATIVE * WEB * TEXT | Zones which define the way the element will be identified. |
Element | Element Identifier as String | Identification of Element in the device screen. Identification can be XPATH or any other Appium Element Identifier |
Index | Element index | Index of Elemen |
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
Touch Commands
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
...
...
client.touchDown("NATIVE", "//*[@text=Username']", 0);
client.touchMove("NATIVE", "//*[@text='Login']", 0);
client.touchUp();