I'm new to nightwatch.js and I want to check the current position of my mouse, is there a way to see the current position of the mouse? i am currently using
client.getLocation("#myId", function (result) {
console.log(result.x);
console.log(result.x);
});
but above the code indicating the location of the #myId element if I use the following code.
client.moveToElement("#myId", 250, 70, function (result) {
console.log(result.status);
});
After performing the above function, my cursor will move from 250 pixels to the x axis and 70 pixels to the y axis from the #myid element.
But how can I detect the previous position of my mouse?
source
share