Skip to content

Instantly share code, notes, and snippets.

@cheezy
Created February 19, 2013 21:46
Show Gist options
  • Save cheezy/4990370 to your computer and use it in GitHub Desktop.
Save cheezy/4990370 to your computer and use it in GitHub Desktop.
Verifying I am on a page using the title
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