Take a look at the X11::GUITest module.
In reply to Re: x window programming in perl by marto in thread x window programming in perl by cspctec