diff --git a/PageObjectLibrary/pageobject.py b/PageObjectLibrary/pageobject.py index fc1eb2f..a819347 100644 --- a/PageObjectLibrary/pageobject.py +++ b/PageObjectLibrary/pageobject.py @@ -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)