/// <summary> /// Get Table Rows /// </summary> /// <param name="controlId">The locator</param> /// <param name="searchText">Select the row based on the text provided</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> /// <returns>list of rows</returns> public string GetTableRows(string controlId, string searchText, bool useSitemapId = true, FindType sourceType = FindType.ById) { string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId; return(_client.GetTableRows(locator, searchText, sourceType)); }