def login(self, email): self.click_sign_in_button() auth0 = Auth0(self.base_url, self.selenium) auth0.request_login_link(email) login_link = conftest.login_link(email) self.selenium.get(login_link) WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_user_loggedin)
def add_email(self, email): self.selenium.find_element(*self._add_email_button_locator).click() auth0 = Auth0(self.base_url, self.selenium) auth0.request_login_link(email) login_link = conftest.login_link(email) self.selenium.get(login_link) return self
def login_passwordless(self, email_address): auth0 = Auth0(self.base_url, self.selenium) auth0.enter_email(email_address) auth0.click_email_enter() auth0.click_send_email() login_link = conftest.login_link(email_address) self.selenium.get(login_link)
def login(self, email): self.click_sign_in_button() auth0 = Auth0(self.selenium, self.base_url) auth0.request_login_link(email) login_link = conftest.login_link(email) self.selenium.get(login_link) self.wait.until(lambda s: self.is_user_loggedin)