Esempio n. 1
0
 public void enterPD(string password)
 {
     try
     {
         _pWDTxBx.SetFocus();
         Keyboard.SendKeys(password);
         WriteLogs("PASS : Entered Password " + "(" + password + ") : VERIFICATION");
     }
     catch (Exception ex)
     {
         WriteLogs("FAIL : Entered Incorrect Password " + "(" + password + ") : VERIFICATION");
         WriteLogs("------------" + ex.Message.ToString());
     }
 }
Esempio n. 2
0
        public void enterUserName(string userName)
        {
            try
            {
                _userNameTxBx.SetFocus();
                Keyboard.SendKeys(userName);
                WriteLogs("PASS : Entered UserName " + "(" + userName + ") : VERIFICATION");
            }

            catch (Exception ex)
            {
                WriteLogs("FAIL : Entered Incorrect UserName " + "(" + userName + ") : VERIFICATION");
                WriteLogs("------------" + ex.Message.ToString());
            }
        }
Esempio n. 3
0
 public void enterBookRef(string bookRef)
 {
     try
     {
         _bookRefTxBx.SetFocus();
         Mouse.Click(_bookRefTxBx);
         Keyboard.SendKeys(bookRef);
         WriteLogs("PASS : Entered valid Book Reference Char - " + bookRef + " : VERIFICATION");
         WriteLogs("PASS : Booking Reference List is displayed.");
     }
     catch (Exception ex)
     {
         WriteLogs("FAIL : Entered an Invalid Book Reference Char - " + bookRef + " : VERIFICATION");
         WriteLogs("------------" + ex.Message.ToString());
     }
 }