public void RegisterLink() { LoginPage = new NewTour_LoginPage(driver); test = extent.CreateTest(TestContext.CurrentContext.Test.Name); Utils.libUtils.AssertEqualString("REGISTER", LoginPage.GetRegisterLink().Text); Utils.libUtils.AssertIsPresent(LoginPage.GetSignInButton()); }
public void RunDataDriver() { LoginPage = new NewTour_LoginPage(driver); test = extent.CreateTest(TestContext.CurrentContext.Test.Name); LoginPage.EnterUserNameTxtField(objxls.ReadExcelByIndex("Data1", "UserName", "2")); LoginPage.EnterPasswordTxtField(objxls.ReadExcelByIndex("Data1", "Password", "2")); LoginPage.ClickSignInButton(); }
public void RunLogin() { LoginPage = new NewTour_LoginPage(driver); test = extent.CreateTest(TestContext.CurrentContext.Test.Name); LoginPage.EnterUserNameTxtField(ConfigurationManager.AppSettings.Get("user")); LoginPage.EnterPasswordTxtField(ConfigurationManager.AppSettings.Get("password")); LoginPage.ClickSignInButton(); }