Example #1
0
 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());
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }