Skip to content

Commit

Permalink
Merge pull request #3 from yahman72/patch-1
Browse files Browse the repository at this point in the history
Meaningful error message for staleness
  • Loading branch information
boakley authored Jun 30, 2016
2 parents b15803c + 0993648 commit 34c275a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PageObjectLibrary/pageobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def _wait_for_page_refresh(self, timeout=10):
old_page = self.browser.find_element_by_tag_name('html')
yield
WebDriverWait(self.browser, timeout).until(
staleness_of(old_page)
staleness_of(old_page),
message="Old page did not go stale within %ss" % timeout
)
self.se2lib.wait_for_condition("return (document.readyState == 'complete')", timeout=10)

Expand Down

0 comments on commit 34c275a

Please sign in to comment.