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