示例#1
0
 public void Gender(int number)
 {
     if (number == 1)
     {
         GenderFemale.Click();
     }
     else if (number == 2)
     {
         GenderMale.Click();
     }
 }
示例#2
0
 public void GenderSelection(string gender)
 {
     if (gender == "Male")
     {
         GenderMale.Click();
     }
     else if (gender == "Female")
     {
         GenderFemale.Click();
     }
     else if (gender == "Other")
     {
         GenderOther.Click();
     }
     else
     {
         throw new Exception("Gender must be Male/Female/Other");
     }
 }
 public PaymentInfoPage FillPersonalInfoForm()
 {
     Email.SendKeys(evoUser.Email);
     Password.SendKeys(evoUser.Password);
     ConfirmPassword.SendKeys(evoUser.ComfirmPassword);
     FirstName.SendKeys(evoUser.FirstName);
     LastName.SendKeys(evoUser.LastName);
     MonthOfBirth.SelectByValue(evoUser.MonthOfBirth);
     DateOfBirth.SelectByValue(evoUser.DateOfBirth);
     YearOfBirth.SelectByValue(evoUser.YearOfBirth);
     GenderMale.Click();
     Address.SendKeys(evoUser.HomeAddress);
     City.SendKeys(evoUser.City);
     PostalCode.SendKeys(evoUser.PostalCode);
     PhoneNumber.SendKeys(evoUser.PhoneNumber);
     DriverLicense.SendKeys(evoUser.DriverLicense);
     MonthOfExpire.SelectByValue(evoUser.MonthOfExpire);
     DateOfExpire.SelectByValue(evoUser.DateOfExpire);
     YearOfExpire.SelectByValue(evoUser.YearOfExpire);
     BtnNextStep.Click();
     return(new PaymentInfoPage());
 }