Skip to main content

Pinch

Description

Use this command to pinch in and out at specific location using a specific pinch radius.

Parameters

NameTypeDescription
InsideBooleanPinch direction.



* True - In

* False - Out:
X CoordinateIntegerX coordinate of the center point from top left
Y CoordinateIntegerX coordinate of the center point from top left.
RadiusIntegerThe pinch radius in screen pixels.
HorizontalBooleanPinch direction



* True - Horizontal

* False - Vertical

Usage

info

Replace <server> with the appropriate URL.

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)