public static void CheckUser(LoginPage loginPage, String newUser, String changePassword) { DashBoardPage dashBoardPage = LoginCommons.Login(loginPage, newUser, changePassword); Assert.IsTrue(dashBoardPage.IsUserNameDisplayed(newUser), "NO se mostro el nombre de usuario"); LoginCommons.Logout(dashBoardPage); }
public void CheckUser() { LoginPage loginPage = new LoginPage(this.Driver); loginPage.FillUserName(ConfigurationManager.AppSettings["NEW_USER"]); loginPage.FillPassword(ConfigurationManager.AppSettings["CHANGE_PASSWORD"]); DashBoardPage dashBoardPage = loginPage.Submit(); //Assert.IsTrue(DashBoardPage.IsLogOutDisplayed(), "Logout link not displayed"); //Assert.IsTrue(DashBoardPage.IsChangePasswordDisplayed(), "Change password link not displayed"); Assert.IsTrue(dashBoardPage.IsUserNameDisplayed(ConfigurationManager.AppSettings["NEW_USER"]), "NO se mostro el nombre de usuario"); }