jonathanpenn / ui-auto-monkey

UI AutoMonkey is a simple stress testing script for iOS applications that runs in UI Automation and Instruments. Grass fed. Free range.
http://cocoamanifest.net
MIT License
1.47k stars 249 forks source link

UIAElementNil is not a function (evaluating 'aButton.isNotNil()') on line 53 of buttonHandler.js #19

Open ghost opened 9 years ago

ghost commented 9 years ago

i faced a problem ,"UIAElementNil is not a function (evaluating 'aButton.isNotNil()') on line 53 of buttonHandler.js",why?

BruceBGordon commented 9 years ago

I believe the problem is that the code as provided has dependencies that are not available.

ButtonHandler uses isNotNil() which is an extension provided by tuneup.js. Another problem is the extension on the same line validAndVisible(). I will unroll these extensions and remove the unnecessary dependencies in a forthcoming pull request.

truebit commented 9 years ago

method validAndVisible() does not exists either, should use isValid() && isVisible() instead

BruceBGordon commented 9 years ago

should be fixed with commit 4317af55966fe1d68511b9bff1515908c22944ca