Skip to content

Commit

Permalink
Meaningful error message for staleness
Browse files Browse the repository at this point in the history
  • Loading branch information
yahman72 authored Jun 30, 2016
1 parent b15803c commit 0993648
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 0993648

Please sign in to comment.