/// <summary> /// Get IWebElements of a html page /// </summary> /// <param name="controlId">The locator</param> /// <param name="sourceType">Type of locator</param> /// <param name="useSitemapId">By default element id will be picked from sitemaps, false to use the control Id directly</param> /// <returns>List of IWebElements</returns> public IList <IWebElement> GetPageElements(string controlId, bool useSitemapId = true, FindType sourceType = FindType.ById) { string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId; return(_client.GetPageElements(locator, sourceType)); }