public void testMainPage() { //login LoggedInPage loggedIn = Login().LoginWithUser(TestContext.Parameters["username"], TestContext.Parameters["password"]); Assert.IsTrue(loggedIn.isHeaderDisplayed()); }
public void testLogin() { //assign GitSignIn gitSignIn = new GitSignIn(driver); //act LoggedInPage loggedIn = gitSignIn.LoginWithUser(TestContext.Parameters["username"], TestContext.Parameters["password"]); //assert Assert.IsTrue(driver.FindElement(loggedIn.loggedInXPath).Displayed); Assert.That(loggedIn.getLogInName().Contains(TestContext.Parameters["username"])); }