Example #1
0
 public void Gender(int number)
 {
     if (number == 1)
     {
         GenderFemale.Click();
     }
     else if (number == 2)
     {
         GenderMale.Click();
     }
 }
Example #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");
     }
 }