?????????????

???????????appstore??????Xcode??????????????д?????°汾?4.5.1

???????????Xcode?????д???в?????

????????????????IOS??????????в?????????????б???????????????????????e??????????У???????????????????д???????Iphone???????????????????????????????????ü??ɡ?

????1???????????????????????????Xcode?????У???????б??????????????????е?“Product-Profile”???????Instruments????????????????????IOS Simulator-??Automation???????Profile

????2?????????Automation??????????????????????????Add-??Create ?????????????Create?????м??????????д???????????????м??????????

//??????window????
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
//????????????????????
target.logElementTree();

?????????API?ο?????????http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/UIAutomationRef/_index.html

????3???????????Record?????????в????????????????????????м?λ????????д???????????????н????log??????????????????б?д??target.logElementTree()?????API??????????????????????????????п??????ν?????????????????????Щ????????API???д??????????????????á?