X11::GUITest, is a Perl package, used for controlling applications by means of user emulation.
This can be used to interact (SendKeys, ClickMouseButton, FindWindowLike, etc.) with applications running under an X Windows environment. Including applications built (GTK+, Qt, Motif, etc.) upon X11 / Xlib.
You may find that this mechanism is easier to use then that provided by xautomation or xdotool.