private static Dictionary <string, string> GetComboBoxItemDictionary() { string itemListPath = PathHelper.GetAppAbsolutePath(ConfigurationManager.AppSettings[ConfigurationKey.COMBOBOX_ITEM_PATH]); XDocument xdoc = XDocument.Load(itemListPath); var query = from element in xdoc.Element("ItemList").Elements("add") select new KeyValuePair <string, string>(element.Attribute("key").Value, LanguageResourceRepository.ReplaceLanguageVariables(element.Attribute("value").Value)); return(query.ToDictionary(item => item.Key, item => item.Value)); }
private Locator NewJazzGetBaselineYearMenuItemLocator(string itemResourceVariable) { return new Locator(LanguageResourceRepository.ReplaceLanguageVariables(String.Format(NewJazzBaselineYeatrMenuItemLocatorFormat, itemResourceVariable)), ByType.XPath); }
private Locator GetMenuItemLocator(string itemResourceVariable) { return(new Locator(LanguageResourceRepository.ReplaceLanguageVariables(String.Format(MenuItemLocatorFormat, itemResourceVariable)), ByType.XPath)); }
private Locator NewJazzGetPredefinedTimeMenuItemLocator(string itemResourceVariable) { return new Locator(LanguageResourceRepository.ReplaceLanguageVariables(String.Format(NewJazzPredefinedTimeMenuItemLocatorFormat, itemResourceVariable)), ByType.XPath); }