Created
January 23, 2016 09:40
-
-
Save karlosmid/af5ae385830eb3db0592 to your computer and use it in GitHub Desktop.
Example of page definition in page-object gem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AuthenticationPage | |
include PageObject | |
page_url 'https://tentamen.eu/session/new' | |
expected_title "Welcome back" | |
text_field(:email, :id => 'user_email') | |
text_field(:password, :id => 'user_password') | |
checkbox(:remember_me, :id => 'user_remember_me') | |
button(:log_in, :value => 'Log in') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment