Mechanic.js
One line of code and your life in UIAutomation just got simpler.
Mechanic.js is a javascript framework designed to make writing UIAutomation scripts faster and easier. It might also make UIAutomation scripts more fun! Mechanic is small (1 file at ~15k) but powerful.
Mechanic.js brings to iOS automation scripting what CSS selector frameworks like jQuery, Dojo, and Zepto have done for HTML DOM traversal.
Check it out on Github and give it a try! Mechanic takes the verbosity of UIAutomation and makes terse and elegant.