public void setDayTime(string day, string time) { displayThreeHourlyUpdatesForDay(day); if (time != "overview") { indexOfTime = timeHelper.ConvertTimeToIndex(time); WaitForElement.WaitForElementToDisplay(driver, threeHourlyUpdatesCollection[indexOfTime], TimeSpan.FromSeconds(2)); setWeatherInfoLine(threeHourlyUpdatesCollection[indexOfTime]); } else { setIndexForADailyOverview(day); setWeatherInfoLine(dailyOverviewCollection[indexOfDay]); } }
public bool isThreeHourelyUpdatesVisible() { WaitForElement.WaitForElementToDisplay(driver, dailyOverviewAndThreeHourlyUpdateForASpecificDayCollection[indexOfDay], TimeSpan.FromSeconds(2)); return(dailyOverviewAndThreeHourlyUpdateForASpecificDayCollection[indexOfDay].Displayed); }