This is a *very* hacky way of trying to create a test case that drives an X based client through an exact prepogrammed set of steps. It's not for the faint of heart, and it's not at all elegant. You have been warned. The heart and soul of it all is the clickat utility, which replicates X mouse movements and keyboard actions. Then simple bash scripts can be written, *hard coding positions*, to create scripts for specific use cases. More elegant behaviors can be crafted; we can do clicks based on finding a particular image, for example. However, that's fairly hard, and is itself vulnerable to change in the pixmaps used by the target application. Further, while this code is on a public repository, it is not at all suitable for use by pretty much anyone else. You can consider it available under the GPL v3 if you wish to copy it or hack it yourself.