Skip to content
Browse files

Wait for each window to have a title when looking for the popup.

  • Loading branch information...
1 parent 44b7633 commit fb99eb62e6d5d1a858218a094355f1fb5397c6c1 @davehunt committed Jun 20, 2012
Showing with 1 addition and 0 deletions.
  1. 0 .travis.yml
  2. +1 −0 pages/webdriver/sign_in.py
View
0 .travis.yml
No changes.
View
1 pages/webdriver/sign_in.py
@@ -28,6 +28,7 @@ def __init__(self, selenium, timeout, expect='new'):
if self.selenium.title != self._page_title:
for handle in self.selenium.window_handles:
self.selenium.switch_to_window(handle)
+ WebDriverWait(self.selenium, self.timeout).until(lambda s: s.title)
if self.selenium.title == self._page_title:
break
else:

0 comments on commit fb99eb6

Please sign in to comment.
Something went wrong with that request. Please try again.