Instruments unable to get UITree

Originator:satya
Number:rdar://18975027 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
I have the following javascript 

var target = UIATarget.localTarget();
var numWindows = target.frontMostApp().windows().length;
UIALogger.logMessage(numWindows + " number of windows")
UIATarget.localTarget().logElementTree();

when I run this code in any other context I would see non zero number of windows. But in this case in our app, I am seeing 0 number of windows. After this happens, I cannot interact with app in anyway. I can't click, type, reopen app etc.

Steps to Reproduce:
1. Open DomainFinder.app(attached) in simulator
2. Open the simple.js script in instruments
3. Click on the searchbox in app
4. Now run the script

Expected Results:
3 windows present and elementtree

Actual Results:
0 windows present and element tree is empty. 

Version:
happens with insturments version 6.1(56160)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!