public void Init() { Driver.Initialize(); ClientPortal_LoginPage.GoTo(Parameters.integration_URL_client_portal); Thread.Sleep(5000); ClientPortal_LoginPage.LoginAs(Parameters.username_integration).WithPassword(Parameters.password_integration).Login(); }
public void Login_WrongUsername() { ClientPortal_LoginPage.GoTo(Parameters.integration_URL_client_portal); ClientPortal_LoginPage.LoginAs("*****@*****.**").WithPassword("1").Login(); Thread.Sleep(1000); Assert.IsTrue(ClientPortal_LoginPage.IncorrectCredentials, "Login successfully"); }
public void Login_successfully() { ClientPortal_LoginPage.GoTo(Parameters.integration_URL_client_portal); ClientPortal_LoginPage.LoginAs("*****@*****.**").WithPassword("1").Login(); Thread.Sleep(1000); Assert.IsTrue(DashboardPage.IsAt, "Failed to login"); }
public void Login_NoUsername_NoPassword() { ClientPortal_LoginPage.GoTo(Parameters.integration_URL_client_portal); ClientPortal_LoginPage.LoginAs("").WithPassword("").Login(); Assert.IsTrue(ClientPortal_LoginPage.IncorrectCredentials, "Login successfully"); }