Linux Hint published a tutorial about how to use Xdotool to stimulate mouse clicks and keystrokes in Linux.
How to Use Xdotool to Stimulate Mouse Clicks and Keystrokes in Linux
xdotool is a free and open-source command-line tool for mouse click and keystrokes. This is a short guide on how to install and configure xdotool on your device for keyboard and mouse input automation in Linux.
How to Use Xdotool to Stimulate Mouse Clicks and Keystrokes in Linux – Linux Hint