Ejemplo n.º 1
0
        /// <summary>
        /// Set the value of the Browse Control
        /// </summary>
        /// <param name="controlId">The control unique identifier.</param>
        /// <param name="value">Value.</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>
        public void SetBrowseControlText(string controlId, string value, bool useSitemapId = true, FindType sourceType = FindType.ById)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId;

            _client.SetBrowseControlText(locator, value, sourceType);
        }