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

UIAutoMonkey.RELEASE_THE_MONKEY() is undefined #26

Closed tfrank64 closed 8 years ago

tfrank64 commented 9 years ago

Every time I run the script in Xcode 7 or 6, I get the error:

UIScript threw an uncaught JavaScript error: UIAutoMonkey.RELEASE_THE_MONKEY is not a function. (In 'UIAutoMonkey.RELEASE_THE_MONKEY()', 'UIAutoMonkey.RELEASE_THE_MONKEY' is undefined) on line 468 of New%20Script

I fixed this by using an older version of UIAutoMonkey, so instead of using: UIAutoMonkey.RELEASE_THE_MONKEY();

I use the following and it works: (new UIAutoMonkey()).RELEASE_THE_MONKEY();

Is this expected behavior?

joamafer commented 8 years ago

+1, I'm facing the same problem

Ricardo1980 commented 8 years ago

+1, have the same problem.

dqshll commented 8 years ago

+1, thank for your solution

Rhinomcd commented 8 years ago

+1, Same issue here.

nishanov commented 8 years ago

@tfrank64 thanks for solution, maybe you should send PR with fix? :)

tfrank64 commented 8 years ago

@nishanov I will do that soon unless I hear otherwise from any primary project developers.

jonathanpenn commented 8 years ago

Is this resolved by #27?

tfrank64 commented 8 years ago

Yes, thanks for merging.