Skip to content

Commit

Permalink
Wait longer for iframe in surrogates test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Oct 4, 2017
1 parent 99f573a commit 3cad194
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/selenium/surrogates_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@
from window_utils import switch_to_window_with_url


WAIT_TIMEOUT = 5


class Test(pbtest.PBSeleniumTest):
"""Integration tests to verify surrogate script functionality."""

def load_ga_js_test_page(self):
def load_ga_js_test_page(self, timeout=10):
# TODO update to pbtest.org URL
# TODO and remove the HTML pages from eff.org then
self.load_url("https://www.eff.org/files/pbtest/ga_js_surrogate_test.html")
wait = WebDriverWait(self.driver, WAIT_TIMEOUT)
wait = WebDriverWait(self.driver, timeout)
wait.until(
EC.frame_to_be_available_and_switch_to_it((By.TAG_NAME, 'iframe'))
)
Expand Down

0 comments on commit 3cad194

Please sign in to comment.