Pinch
Description
Use this command to pinch in and out at specific location using a specific pinch radius.
Parameters
Name | Type | Description |
---|---|---|
Inside | Boolean | Pinch direction. * True - In * False - Out: |
X Coordinate | Integer | X coordinate of the center point from top left |
Y Coordinate | Integer | X coordinate of the center point from top left. |
Radius | Integer | The pinch radius in screen pixels. |
Horizontal | Boolean | Pinch direction * True - Horizontal * False - Vertical |
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
Example
Example for Pinch Operation
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
...
...
//Command performs and pinch action
seetest.pinch(true, 600, 1000, 700, false)