Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Bug 1198616 - Increase timeout for button stale check due to slow con…
Browse files Browse the repository at this point in the history
…nection times. r=maja_zf
  • Loading branch information
whimboo committed Oct 29, 2015
1 parent 50527c6 commit ed85acc
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -82,10 +82,12 @@ def check_report_button(self, unsafe_page):
button = self.marionette.find_element(By.ID, "reportButton")
button.click()

# Wait for the button to become stale, then wait for page load
# so we can verify the url even if a redirect happens
Wait(self.marionette).until(expected.element_stale(button))
# Wait for the button to become stale, whereby a longer timeout is needed
# here to not fail in case of slow connections.
Wait(self.marionette, timeout=self.browser.timeout_page_load).until(
expected.element_stale(button))

# Wait for page load to be completed, so we can verify the URL even if a redirect happens.
# TODO: Bug 1140470: use replacement for mozmill's waitforPageLoad
Wait(self.marionette, timeout=self.browser.timeout_page_load).until(
lambda mn: mn.execute_script('return document.readyState == "complete";')
Expand Down

0 comments on commit ed85acc

Please sign in to comment.