How to perform X,Y click with TestProject?

To perform X, Y click on Web with TestProject, we will first need to find the coordinates (x,y) of the page. to do so we will open the session dev tools using right-click -> inspect or F12 on the keyboard.

After we opened the dev tools we will navigate to the "Console" tab, and type this command to find our current mouse position:

document.onmousemove = function(e){
var x = e.clientX;
var y = e.clientY;
var a = e.clientX;
var b = e.clientY;
document.title = "X is "+x+" and Y is "+y; = "X is "+a+" and Y is "+b;

it should look like this:

We can either use the new tab name or the tooltip we have added.

After we retrieved the X, Y coordinates, we will execute a step from the addon Web Extensions named Execute JavaScript.

We will type this into our Code input to click on the exact coordinates:


Don't forget to replace (x, y) with the coordinates.

If you followed all these instructions it should look like this:

For Mobile tap at X, Y coordinates:

To tap anywhere on the mobile screen at coordinates we will use the step " tap gesture at coordinates".

To find the X, Y we will use the TestProject recorder.

We can locate the coordinates on the top right corner of the screen.

Then we will set them in the inputs fields of the step.

It should look like this:

Did this answer your question?