Exemplo n.º 1
0
 public RegistrationPage FillAndSubmitRegistrationForm(string login, string email, string name, string surname, string phone, string password, string confirmPassword)
 {
     LoginField.SendKeys(login);
     EmailField.SendKeys(email);
     NameField.SendKeys(name);
     SurnameField.SendKeys(surname);
     PhoneField.SendKeys(phone);
     PasswordField.SendKeys(password);
     RepeatPasswordField.SendKeys(confirmPassword);
     TestDataHelper.ClickRandomDate(BirthDateField);
     UnitField.Click();
     EridCells = Factory.TryFindElements(By.XPath(RegistrationPageLocators.GridCellsLocator));
     TestDataHelper.ClickRandomGridCell(EridCells);
     ConfirmationButton.Click();
     return(new RegistrationPage());
 }
Exemplo n.º 2
0
 public RegistrationPage aa(string birthDate, params string[] vs)
 {
     foreach (var item in vs)
     {
         LoginField.SendKeys(item);
         EmailField.SendKeys(item);
         NameField.SendKeys(item);
         SurnameField.SendKeys(item);
         PhoneField.SendKeys(item);
         PasswordField.SendKeys(item);
         RepeatPasswordField.SendKeys(item);
     }
     TestDataHelper.ClickRandomDate(BirthDateField);
     UnitField.Click();
     EridCells = Factory.TryFindElements(By.XPath(RegistrationPageLocators.GridCellsLocator));
     TestDataHelper.ClickRandomGridCell(EridCells);
     ConfirmationButton.Click();
     return(new RegistrationPage());
 }