Drag Coordinates
Description
Use this command to perform the drag action based on start coordinates (X,Y) and end coordinates (X,Y) on the device reflection.
Parameters
Name | Type | Description |
---|---|---|
X1 Coordinate | Integer | X coordinate starting point to start the drag |
Y1 Coordinate | Integer | Y coordinate starting point to start the drag |
X2 Coordinate | Integer | X coordinate starting point to end the drag |
Y2 Coordinate | Integer | Y coordinate starting point to end the drag |
Time | Integer | Time in milliseconds for the command to be executed |
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
Drag Action
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
...
...
// Command to Drag Action
client.dragCoordinates(636, 826, 572, 1166, 2000);