Reputation: 2924
I'm trying to figure out how to click some coordinates of the webpage after it is being loaded (lets say x:250px && y:500px).
By native click i mean a real life event, like i use my mouse to click an image or a link or whatever i want.
Is there anyway of doing it?
Thanks a lot for your time.
Upvotes: 4
Views: 364
Reputation: 1192
You need to check what your browser support requirements are, but this should work for most modern browsers:
document.elementFromPoint(x, y).click();
Upvotes: 6