def log_in(self, user="******"):
        credentials = self.testsetup.credentials[user]
        browser_id = BrowserID(self.testsetup)

        browser_id.login_browser_id(credentials)
        browser_id.sign_in()

        self.sel.wait_for_page_to_load(self.timeout)
Example #2
0
    def login(self, user="******"):
        if self._page_url not in self.selenium.current_url:
            self.selenium.get(self.base_url + self._page_url)

        self.selenium.find_element(*self._browser_id_link_locator).click()

        from pages.browser_id import BrowserID
        pop_up = BrowserID(self.testsetup)
        pop_up.login_browser_id(user)
        pop_up.sign_in()

        WebDriverWait(self.selenium, 10).until(lambda s: self.header.logged_in)