Simple tool to add a real-time console to Apple's UI Automation scripting
- Clone this repo into your project directory:
git clone git://github.com/jdoxey/uia-console.git
- Create a UIAutomation script which imports UIAConsole:
#import "uia-console/UIAConsole.js"
- Where you want your script to break, add:
UIAConsole.breakpoint();
- Run your script from Instruments (
command-i
) and wait for the browser to pop up. - Submit script you'd normally see in a UIAutomation script (check for output in the Instruments console)
- Hit "Continue" to run the rest of your script