Ejemplo n.º 1
0
 public void FillRegistrationForm(RegistrationUser user)
 {
     Type(FirstName, user.FirstName);
     Type(LastName, user.LastName);
     FillManyOptionElements(MatrialStatus, user.MatrialStatus);
     FillManyOptionElements(Hobbies, user.Hobbies);
     CountryOption.SelectByText(user.Country);
     MonthOption.SelectByValue(user.Month);
     DayOption.SelectByText(user.Day);
     YearOption.SelectByValue(user.Year);
     Type(Phone, user.Phone);
     Type(UserName, user.UserName);
     Type(Email, user.Email);
     UploadPicButton.Click();
     _driver.SwitchTo().ActiveElement().SendKeys(user.PicturePath);
     Type(Description, user.Description);
     Type(Password, user.Password);
     Type(ConfirmPassword, user.ConfirmPassword);
     SubmitButton.Click();
 }
Ejemplo n.º 2
0
 public void FillRegistrationForm()
 {
     Type(FirstName, "Ventsislav");
     Type(LastName, "Ivanov");
     this.MatrialStatus.Click();
     this.Hobbies[0].Click();
     this.Hobbies[1].Click();
     CountryOption.SelectByText("Bulgaria");
     MonthOption.SelectByValue("3");
     DayOption.SelectByText("3");
     YearOption.SelectByValue("1989");
     Type(Phone, "359999999999");
     Type(UserName, "BatmanForever");
     Type(Email, "*****@*****.**");
     UploadPicButton.Click();
     Driver.SwitchTo().ActiveElement().SendKeys(Path.GetFullPath(@"..\..\..\logo.jpg"));
     Type(Description, "I think I'm Ready with this test!");
     Type(Password, "123456789");
     Type(ConfirmPassword, "123456789");
     SubmitButton.Click();
 }