/// <summary> /// Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter). /// For checkbox/radio elements, the value will be "on" or "off" depending on /// whether the element is checked or not. /// </summary> /// <param name="controlId"></param> /// <param name="useSitemapId">By default element id will be picked from sitemaps, false to use the control Id directly</param> /// <param name="sourceType">Default mentions the element is of Id type</param> public string GetValue(string controlId, bool useSitemapId = true, FindType sourceType = FindType.ById) { string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId; return(_client.GetValue(locator, sourceType)); }