Created
February 19, 2013 21:46
-
-
Save cheezy/4990370 to your computer and use it in GitHub Desktop.
Verifying I am on a page using the title
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 MyPage | |
include PageObject | |
expected_title('the title I need to look for') | |
def initialize_page | |
has_expected_title? | |
end | |
end | |
# initialize_page is a callback that happens each time the class is created | |
# expected_title will generate the method has_expected_title? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment