...It lets you interact with applications running under X Window System — sending keystrokes, clicking mouse buttons, finding and manipulating windows, and more — including apps built with GTK+, Qt, Motif, and other toolkits on top of X11/Xlib.
If you're comparing GUI automation tools for X11, X11::GUITest is another option worth considering alongside xautomation and xdotool.
Note: This module relies on X11/Xlib and does not work under native Wayland sessions (it requires XWayland or a full X11 session). There are no plans to add native Wayland support.