public void LoginWithValidData() { HomePage myHomePage = new HomePage(Driver); LoginRegisterPage myLoginRegisterPage = new LoginRegisterPage(Driver); myHomePage.GoToLoginPage(); myLoginRegisterPage.LoginIntoApplication("*****@*****.**", "123456"); Assert.IsTrue(myLoginRegisterPage.LoginSuccessElement.Displayed); }
public void LoginWithInvalidData() { HomePage myHomePage = new HomePage(Driver); LoginRegisterPage myLoginRegisterPage = new LoginRegisterPage(Driver); myHomePage.GoToLoginPage(); myLoginRegisterPage.LoginIntoApplication("*****@*****.**", "gegegergaswe"); Assert.IsTrue(myLoginRegisterPage.LoginInvalidError.Displayed); }