Ejemplo n.º 1
0
 def test_02_login_invalid(self):
     driver = self.driver
     login = LoginPage(driver)
     login.enter_username(TestData.Invalid_Username)
     login.enter_password(TestData.Password)
     login.click_login()
     msg = login.invalid_username()
     self.assertEqual(msg, TestData.Invalid_Credentials)
Ejemplo n.º 2
0
    def test_01_login(self):
        driver = self.driver
        login = LoginPage(driver)
        login.enter_username(TestData.Username)
        login.enter_password(TestData.Password)
        login.click_login()

        time.sleep(2)
        home = HomePage(driver)
        home.click_welcome()
        home.click_logout()