Example #1
0
 def test_login_06(self):
     wait = WebDriverWait(self.driver, 10)
     login = Login(self.driver)
     # Clicking "Sign In" link
     login.close_icon()
     login.click_signin()
     # Enter a invalid email in email field
     login.set_email_address(self.email_address)
     # Enter a invalid password in password field
     login.set_password(self.password)
     # Click 'Continue' button
     login.click_continue()
     # Verify if alert email error text is present.
     element = wait.until(EC.presence_of_element_located((By.XPATH, Login.alert_incorrect_email)))
     assert element.is_displayed(), "ERROR. Alert email error text is no present."
Example #2
0
 def test_login_13(self):
     wait = WebDriverWait(self.driver, 10)
     login = Login(self.driver)
     # Clicking "Sign In" link
     login.close_icon()
     login.click_signin()
     # Enter valid email
     login.set_email_address(self.email_address)
     # Enter valid password
     login.set_password(self.password)
     # Verify if the password is in encrypted form, of no => error
     element = wait.until(
         EC.presence_of_element_located(
             (By.XPATH, Login.encrypted_password)))
     assert element.is_displayed(
     ), "ERROR. Password is not in encrypted form."
Example #3
0
 def test_login_10(self):
     wait = WebDriverWait(self.driver, 10)
     login = Login(self.driver)
     # Clicking "Sign In" link
     login.close_icon()
     login.click_signin()
     # Enter an empty email in email field
     login.set_email_address(self.email_address)
     # Enter an empty password in password field
     login.set_password(self.password)
     # Click on "Continue" button
     login.click_continue()
     # Verify if user cannot login with empty email and empty pass
     element = wait.until(EC.presence_of_element_located((By.XPATH, Login.alert_no_email_address)))
     assert element.is_displayed(), "ERROR. Missing email error text is no present."
     element = wait.until(EC.presence_of_element_located((By.XPATH, Login.alert_pass_missing)))
     assert element.is_displayed(), "ERROR. password email error text is no present."