Created
August 17, 2018 03:15
-
-
Save rodmatola/cca10587b2fc9c5996166d4a60e5fc78 to your computer and use it in GitHub Desktop.
This file contains 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 LoginPage < SitePrism::Page | |
set_url "" | |
element :user_field, "" | |
element :password_field, "" | |
element :btn_login, "" | |
end |
This file contains 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
def current_page_is?(page) | |
page.has_title? page | |
end |
This file contains 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
NAMES = { | |
'main_page' => '' | |
} | |
USERS = { | |
'username' => '', | |
'email' => '', | |
'ID' => '' | |
} | |
PASSWORDS = { | |
'username' => '', | |
'email' => '', | |
'ID' => '' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment