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);
 }
Exemplo n.º 3
0
 public void SetRandom()
 {
     if (Checkbox.IsPresent)
     {
         Checkbox.Set(true);
     }
     else if (Select.IsPresent)
     {
         Select.Set(Select.Options[Randomizer.GetInt(0, Select.Options.Count - 1)].Value);
     }
     else if (TextInput.IsPresent)
     {
         TextInput.SetRandom();
     }
     else if (DateInput.IsPresent)
     {
         DateInput.SetRandom();
     }
     else if (EmailInput.IsPresent)
     {
         EmailInput.Set(Randomizer.GetString("{0}@{0}.com"));
     }
 }