ClickCoordinate
Description
This command will click an element according to the coordinates specified in the command.
Parameters
Name | Value | Description |
---|---|---|
x coordinate | int | X: Horizontal Offset from the Element in screen pixels |
y coordinate | int | Y: Vertical Offset from the Element in screen pixels |
clickCount | int | Number of clicks to perform |
Usage
This command allows you to click an element according to its location on the screen, using x and y coordinates.
Example
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
Usage of ClickCoordinate Command
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
...
...
// locate the element at coordinates x: 250, y: 100 and clicks on it three times
seetest.clickCoordinate(250, 100, 3);