Skip to content

Instantly share code, notes, and snippets.

@jaykz52
Created August 23, 2012 22:21
Show Gist options
  • Save jaykz52/3442722 to your computer and use it in GitHub Desktop.
Save jaykz52/3442722 to your computer and use it in GitHub Desktop.
UIAutomation FAIL
var elements = UIATarget.localTarget().frontMostApp().mainWindow().elements();
for (var i = 0; i < elements.length; i++) {
var el1 = elements[i];
var el2 = elements[i];
var equals = (el1 == el2);
UIALogger.logMessage(el1.label() + " is equal to " + el2.label() + " ? " + equals);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment