public string CheckCityList(DestinationCityPage page) { StringBuilder sb = new StringBuilder(); foreach (string str in page.cityCodeList) { string cityOnMapXPath = mapItemXPath.Replace("***", str); if (WebElementHelper.WaitUntilElementEnable(Driver, By.XPath(cityOnMapXPath)) == null) { Message = string.Format("city {0} does not found", str); sb.Append(Message); } } this.Message = Message; return(Message); }