def login(self, email_address): self.click_sign_in_button() auth0 = Auth0(self.selenium, self.base_url) auth0.request_login_link(email_address) login_link = restmail.get_mail(email_address) self.selenium.get(login_link) self.wait.until(lambda s: self.is_user_loggedin)
def login_link(username): mail = restmail.get_mail(username) mail_content = mail[0]['text'].replace('\n', ' ').replace('amp;', '').split(" ") for link in mail_content: if 'passwordless/verify_redirect' in link: return link
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 = restmail.get_mail(email_address) self.selenium.get(login_link)
def login_link(username): mail = restmail.get_mail(username) mail_content = mail[0]['text'].replace('\n', ' ').replace('amp;', '').split(" ") for link in mail_content: if link.startswith("https"): return link