예제 #1
0
 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)
예제 #2
0
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
예제 #3
0
 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)
예제 #4
0
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
예제 #5
0
 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)
예제 #6
0
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
예제 #7
0
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