Пример #1
0
        /// <summary>
        /// Get data of all the rows whose first text column is of 'columnText'
        /// </summary>
        /// <param name="controlId">The locator</param>
        /// <param name="columnText">The text for first text column in the table row</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 a list of rows</returns>
        public List <StringCollection> GetTableRowsData(string controlId, String columnText, bool useSitemapId = true, FindType sourceType = FindType.ById)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId;

            return(_client.GetTableRowsData(locator, columnText, sourceType).ToList());
        }