Beispiel #1
0
        public ChangePasswordPage ChangePassword(string oldPassword, string newPassword, string confirmPassword)
        {
            //input values
            TxtCurrentPassword.Clear();
            TxtCurrentPassword.SendKeys(oldPassword);
            TxtNewPassword.Clear();
            TxtNewPassword.SendKeys(newPassword);
            TxtConfirmPassword.Clear();
            TxtConfirmPassword.SendKeys(newPassword);

            //submit
            BtnChangePassword.Click();

            return(this);
        }
Beispiel #2
0
 public RegisterPage RegisterInvalid(string email, string password, string confirm, string pid)
 {
     //input data
     TxtEmail.Clear();
     TxtEmail.SendKeys(email);
     TxtPassword.Clear();
     TxtPassword.SendKeys(password);
     TxtConfirmPassword.Clear();
     TxtConfirmPassword.SendKeys(confirm);
     TxtPIDPassport.Clear();
     TxtPIDPassport.SendKeys(pid);
     //submit
     BtnRegister.Click();
     //return thank you page
     return(this);
 }
Beispiel #3
0
        public RegisterPage RegisterInvalid(User user)
        {
            //input data
            TxtEmail.Clear();
            TxtEmail.SendKeys(user.Email);
            TxtPassword.Clear();
            TxtPassword.SendKeys(user.Password);
            TxtConfirmPassword.Clear();
            TxtConfirmPassword.SendKeys(user.PasswordConfirm);
            TxtPIDPassport.Clear();
            TxtPIDPassport.SendKeys(user.Pid);

            //submit
            BtnRegister.Click();

            //return error page
            return(this);
        }
Beispiel #4
0
        public ThankYouRegisterPage Register(User user)
        {
            //input data
            TxtEmail.Clear();
            TxtEmail.SendKeys(user.Email);
            TxtPassword.Clear();
            TxtPassword.SendKeys(user.Password);
            TxtConfirmPassword.Clear();
            TxtConfirmPassword.SendKeys(user.PasswordConfirm);
            TxtPIDPassport.Clear();
            TxtPIDPassport.SendKeys(user.Pid);

            //submit
            BtnRegister.Click();

            //return thank you page
            return(new ThankYouRegisterPage());
        }