public void Step3() { var d = new Data.Data.Beneficiary(); var DOBYearDropdownSelect = new SelectElement(DobYearDropdown); var DOBMonthDropdownSelect = new SelectElement(DobMonthDropdown); var DOBDayDropdownSelect = new SelectElement(DobDayDropdown); var StateDropdownSelect = new SelectElement(StateDropDown); FirstNameField.SendKeys(d.FirstName); LastNameField.SendKeys(d.LastName); SSNField.SendKeys(d.SSN); DOBYearDropdownSelect.SelectByText(d.Year); DOBMonthDropdownSelect.SelectByText(d.Month); DOBDayDropdownSelect.SelectByText(d.Day); SSNField.Click(); Actions builder = new Actions(_driver); builder.SendKeys(Keys.Tab).Perform(); var AgeGradeDropdownSelect = new SelectElement(AgeGradeDropdown); AgeGradeDropdownSelect.SelectByIndex(d.AgeGrade); Address1Field.SendKeys(d.Address1); CityField.SendKeys(d.City); StateDropdownSelect.SelectByText(d.State); ZipCodeField.SendKeys(d.Zip); NextButton.Click(); }
public void Step3() { var d = new Data.Data.Beneficiary(); var DOBYearDropdownSelect = new SelectElement(DobYearDropdown); var DOBMonthDropdownSelect = new SelectElement(DobMonthDropdown); var DOBDayDropdownSelect = new SelectElement(DobDayDropdown); var StateDropdownSelect = new SelectElement(StateDropDown); FirstNameField.SendKeys(d.FirstName); LastNameField.SendKeys(d.LastName); SSNField.SendKeys(d.SSN); DOBYearDropdownSelect.SelectByText(d.Year); DOBMonthDropdownSelect.SelectByText(d.Month); DOBDayDropdownSelect.SelectByText(d.Day); SSNField.Click(); Actions builder = new Actions(_driver); builder.SendKeys(Keys.Tab).Perform(); var AgeGradeDropdownSelect = new SelectElement(AgeGradeDropdown); AgeGradeDropdownSelect.SelectByIndex(d.AgeGrade); Address1Field.SendKeys(d.Address1); CityField.SendKeys(d.City); StateDropdownSelect.SelectByText(d.State); ZipCodeField.SendKeys(d.Zip); NextButton.Click(); }