Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LoginPage
- include Gametel
- text(:username, :index => 0)
- text(:password, :index => 1)
- def login_successfully
- self.username = 'user'
- self.password = 'secret'
- on(LandingPage).should be_active
- end
- end
- Given /^I have logged in successfully$/
- on(LoginPage).login_successfully
- end
Add Comment
Please, Sign In to add comment