class WelcomeScreen extends Screen #anchor: -> $("navigationBar[name=Welcome]")
constructor: -> super 'welcome'
extend @elements, 'Go' : -> view.buttons()["Go"] extend @actions, 'Type "([^"]*)" in the username field$': (text) -> field = view.elements()['Username'] field.setValue text
'Show elements': -> view.logElementTree()
'Rotate to landscape': -> UIATarget.localTarget().setDeviceOrientation(UIA_DEVICE_ORIENTATION_LANDSCAPELEFT)
Script threw an uncaught JavaScript error: Action for line ' Rotate to landscape' not defined on line 615 of feature.js
What am I doing wrong? Why is it trying to reference feature.js ?
Thank you.