5

I have recently tried using UIAutomation framework for some simple automated UI tests for iOS devices. While interesting and relatively powerful, I find it quite tedious to write the scripts without having the possibility of debugging them.

Is there any way to debug the UIAutomation scripts ? The emphasis here is on the debugging of the script itself, i.e. the javascript part, I have already found the explanation of how to debug the tested application itself here.

Community
  • 1
  • 1
Tomas Vana
  • 18,317
  • 9
  • 53
  • 64

1 Answers1

1

I use these techniques to debug UI Automation scripts:

  • window.logElementTree(); // to see where you are in the UI structure
  • UIALogger.logMessage(msg); // ... and where you are in your script

Jonathan Penn describes it here.

dagett
  • 81
  • 7