internal void FillSchedrule(int DataRow) { //Check if the user is able to click on a "Start Date" for the "Available days" field StartDateDropDown.Click(); StartDateDropDown.Clear(); StartDateDropDown.SendKeys(GlobalDefinitions.ReadData(DataRow, "StartDate")); //Check if the user is able to click on a "End Date" for the "Available days" field EndDateDropDown.Click(); EndDateDropDown.Clear(); EndDateDropDown.SendKeys(GlobalDefinitions.ReadData(DataRow, "EndDate")); //Check if the user is able to click on a "Day" checkbox for the "Available days" field for (var i = 1; i <= 5; i++) { Days[i].Click(); } //Check if the user is able to select a "Start Time" for the "Available days" field StartTimeDropDown.SendKeys(GlobalDefinitions.ReadData(DataRow, "StartTime")); //Check if the user is able to select a "End Time" for the "Available days" field EndTimeDropDown.SendKeys(GlobalDefinitions.ReadData(DataRow, "EndTime")); //Check if the user is able to click on "Credits" as the "Skill Trade" option SkillTradeCreditsOption.Click(); //Check if the user is able to enter a number for the "Credits" field CreditAmount.Clear(); CreditAmount.SendKeys(GlobalDefinitions.ReadData(DataRow, "Credit")); //Check if the user is able to set an option for the "Active" field ActiveOption.Click(); }