Пример #1
0
        /// <summary>
        /// Get Table Details
        /// </summary>
        /// <param name="controlId">The locator</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>Collection of table details</returns>
        public Collection <Collection <string> > GetTable(string controlId, bool includeHeader = true, int[] columnIndex = null, FindType elementType = FindType.ById, bool returnValue = true, bool useSitemapId = true, FindType sourceType = FindType.ById)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId;

            return(_client.GetTable(locator, type: sourceType, includeHeader: includeHeader, columnIndex: columnIndex, elementType: elementType, returnValue: returnValue));
        }