예제 #1
0
 public void LoginToAPP()
 {
     UserNameTextBox.Clear();
     UserNameTextBox.SendKeys(ReadEnv.ReadData("base", "username"));
     PasswordText.Clear();
     PasswordText.SendKeys(ReadEnv.ReadData("base", "password"));
     LoginButton.Click();
     Assert.True(LaunchButton.Displayed);
 }
예제 #2
0
        public void FillDetails()
        {
            TitleCombo.Click();
            GivenName.Clear();
            GivenName.SendKeys(ExcelOperation.GetData[19]);

            Surname.Clear();
            Surname.SendKeys(ExcelOperation.GetData[20]);
            RelationshipText.Clear();

            RelationshipText.SendKeys(ExcelOperation.GetData[21]);
            PasswordText.Clear();
            PasswordText.SendKeys(ExcelOperation.GetData[22]);
            PasswordPromptText.Clear();

            PasswordPromptText.SendKeys(ExcelOperation.GetData[23]);
            GenericHelper.AllScreenShot(driver);
        }
예제 #3
0
 public void LogIn(string userName, string password)
 {
     try
     {
         if (AnotherUserLink.Displayed)
         {
             ElementAccessors.DoClick(this.driver, AnotherUserLink);
         }
     }
     catch (Exception)
     {  }
     finally
     {
         UserNameText.SendKeys(userName);
         PasswordText.SendKeys(password);
         ElementAccessors.Wait(4);
         ElementAccessors.DoClick(this.driver, SignInButton);
         ElementAccessors.Wait(4);
     }
 }