News for hackers. Stuff that matters.
Re:JavaScript for OS X Automation by ryanmarsh on Wednesday September 17, 2014 @12:17PM (#8330741)
In Instruments since iOS 7 this has been somewhat possible but the JavaScript context was fairly locked down. I wanted to drive my UI automation tests with Cucumber (Ruby) so I wrote a little driver that patches Instruments to get access to the JavaScript context and expose it to a rudimentary server which listens for commands from your Cucumber tests.

You can check it out here https://github.com/cucumber-instruments/cucumber-instruments

Re:JavaScript for OS X Automation by lukeredpath on Wednesday September 17, 2014 @07:54PM (#8332959)
Have you used Appium? It does pretty much the same thing. I have an alternative Ruby library for it too:

https://github.com/songkick/rubium-ios

You can use it with Cucumber or Rspec or whatever.

Re:JavaScript for OS X Automation by ryanmarsh on Friday September 19, 2014 @05:10PM (#8342506)
Yes, when I wrote this some time late last year I vaguely recall that Appium wasn't quite able to fit my need. It looks much nicer now.

I want something even less complex for the developer to set up. I want something that shows almost no brittleness. One way to do that is to use Apple's UIAutomation directly. I also wanted to be able to use Ruby and Cucumber, so I built as simple a bridge as I could.

Selenium is popular though.