Cucumber exmaple for MacOS native application with Osaka Enabling the osascript On the macOs Sierra you need to enable the osascript: https://stackoverflow.com/questions/31019916/is-not-allowed-for-assistive-access-error-when-running-applescript-from-java run this project bundle install bundle exec cucumber