Esempio n. 1
0
        public void ThisIsMyNewTest()
        {
            ExecuteAutomationLogin executeAutomationLogin = new ExecuteAutomationLogin(Browser);

            AssertPageElements(executeAutomationLogin);
            Login(executeAutomationLogin);
        }
Esempio n. 2
0
 public void AssertPageElements(ExecuteAutomationLogin executeAutomationLogin)
 {
     HpgAssert.AreEqual(executeAutomationLogin.LoginLink.Text, "LOGIN");
     HpgAssert.AreEqual(executeAutomationLogin.PageTitle.Text, "Execute Automation Selenium Test Site");
     HpgAssert.AreEqual(executeAutomationLogin.LoginTitle.Text, "Login");
     HpgAssert.AreEqual(executeAutomationLogin.UserNameLbl.Text, "UserName  ");
     HpgAssert.AreEqual(executeAutomationLogin.PasswordLbl.Text, "Password    ");
     HpgAssert.Exists(executeAutomationLogin.UserNameTxtFld);
     HpgAssert.Exists(executeAutomationLogin.PasswordTxtFld);
     HpgAssert.Exists(executeAutomationLogin.LoginBtn);
 }
Esempio n. 3
0
 public void Login(ExecuteAutomationLogin executeAutomationLogin)
 {
     executeAutomationLogin.InputUserName(getTestData().ElementAt(1).fields["Username"]);
     executeAutomationLogin.InputPassword(getTestData().ElementAt(1).fields["Password"]);
     executeAutomationLogin.ClickLoginBtn();
 }