public void ChangePassword(string oldPass, string newPass, string newPassConfirm)
 {
     CurrentPasswordInput.SendKeys(oldPass);
     NewPasswordInput.SendKeys(newPass);
     ConfirmPasswordInput.SendKeys(newPassConfirm);
     UpdateBtn.Click();
 }
 public RegistrationPage FillForm(string email, string fullName, string password, string cpassword)
 {
     EmailInput.Clear();
     EmailInput.Set(email);
     FullNameInput.Clear();
     FullNameInput.Set(fullName);
     PasswordInput.Clear();
     PasswordInput.Set(password);
     ConfirmPasswordInput.Clear();
     ConfirmPasswordInput.Set(cpassword);
     return(this);
 }
 public RegistrationPage FillForm(User user)
 {
     EmailInput.Clear();
     EmailInput.Set(user.Email.Value);
     FullNameInput.Clear();
     FullNameInput.Set(user.FullName);
     PasswordInput.Clear();
     PasswordInput.Set(user.Password);
     ConfirmPasswordInput.Clear();
     ConfirmPasswordInput.Set(user.Password);
     return(this);
 }
Beispiel #4
0
        void ReleaseDesignerOutlets()
        {
            if (ConfirmPasswordInput != null)
            {
                ConfirmPasswordInput.Dispose();
                ConfirmPasswordInput = null;
            }

            if (CreateAccountButton != null)
            {
                CreateAccountButton.Dispose();
                CreateAccountButton = null;
            }

            if (EmailInput != null)
            {
                EmailInput.Dispose();
                EmailInput = null;
            }

            if (EmailLabel != null)
            {
                EmailLabel.Dispose();
                EmailLabel = null;
            }

            if (PasswordInput != null)
            {
                PasswordInput.Dispose();
                PasswordInput = null;
            }

            if (PasswordLabel != null)
            {
                PasswordLabel.Dispose();
                PasswordLabel = null;
            }
        }
 public void TypeConfirmPassword(String password)
 {
     ConfirmPasswordInput.SendKeys(password);
 }