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
Set Experitest Url
Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.
- For SeeTest cloud, EXPERITEST_URL needs to be https://cloud.seetest.io:443/wd/hub
- For Dedicated Experitest Lab, EXPERITEST_URL needs to be your own domain. e.g - https://company.experitest.com
Usage of ClickCoordinate Command
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), 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);