Ejemplo n.º 1
0
        /// <summary>
        /// Gets the text from a cell of a table.
        /// </summary>
        /// <param name="tableCellAddress">table id</param>
        /// <param name="row">row value of the cell</param>
        /// <param name="column">column value of the cell</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>the text from the specified cell</returns>
        //public string GetTableCell(string tableCellAddress, int row, int column)
        //{
        //    return _client.GetTableCell(tableCellAddress, row, column);
        //}
        public string GetTableCell(string controlId, int row, int column, bool useSitemapId = true, FindType sourceType = FindType.ById)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId;

            return(_client.GetTableCell(locator, row, column));
        }