What end-goal are you trying to achieve?
I find that it's rarely a good idea to simulate human input devices. 
You're usually better off going through an appropriate API to accomplish 
a task, rather than trying to do it through the user interface.

-- 
Posted via http://www.ruby-forum.com/.