Skip to main content

ClickCoordinate

Description

This command will click an element according to the coordinates specified in the command.

Parameters

NameValueDescription
x coordinateintX: Horizontal Offset from the Element in screen pixels
y coordinateintY: Vertical Offset from the Element in screen pixels
clickCountintNumber 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.

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);