Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change page title branding

Add else clause to the loop to fail test if the window cannot be found
  • Loading branch information...
commit 62b088b94483669cd31014582c87c9646cd9c27c 1 parent 7480912
Zac authored
Showing with 3 additions and 1 deletion.
  1. +1 −1  pages/webdriver/base.py
  2. +2 −0  pages/webdriver/sign_in.py
View
2  pages/webdriver/base.py
@@ -7,7 +7,7 @@
class Base(object):
- _page_title = 'BrowserID'
+ _page_title = 'Mozilla Persona'
def __init__(self, selenium, timeout=60):
self.selenium = selenium
View
2  pages/webdriver/sign_in.py
@@ -28,6 +28,8 @@ def __init__(self, selenium, timeout, expect='new'):
self.selenium.switch_to_window(handle)
if self.selenium.title == self._page_title:
break
+ else:
+ raise Exception('Popup has not loaded')
if expect == 'new':
WebDriverWait(self.selenium, self.timeout).until(
Please sign in to comment.
Something went wrong with that request. Please try again.