Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (21 sloc) 1.009 kb
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
import selenium
class BrowserID(object):
VERIFY_URL_REGEX = 'https?:\/\/(\S+)\/verify_email_address\?token=(\S+)'
INCLUDE_URL_REGEX = '(https?:\/\/(\S+))\/include\.js'
def __init__(self, sel, timeout=60):
self.selenium = sel
setattr(self.selenium, 'rc', isinstance(self.selenium,
self.timeout = timeout
def sign_in(self, email, password):
"""Signs in using the specified email address and password."""
if self.selenium.rc:
from pages.rc.sign_in import SignIn
from pages.webdriver.sign_in import SignIn
sign_in = SignIn(self.selenium, timeout=self.timeout, expect='new')
sign_in.sign_in(email, password)
Jump to Line
Something went wrong with that request. Please try again.