A Utility Script to Automate Mouse Events in Linux
I was participating in a Website Survey and the usecase was below
- A Website contains a links to Other website
- We need to click on a Visit Button which opens another browser tab
- A timer Counts 20 seconds of your visiting time and you can earn some points ;)
- Close the New tab, Come back to parent website and refresh thepage and do the same over again.
Ubuntu comes with a Handy tool Named xdotool to simulate X mouse events Download Xdotools using the below command sudo apt-get install xdotools
Using xdotools find your mouse hotspots like below xdotool getmouselocation
Note this down and
Write a Small Script like the one available in the respository