Beispiel #1
0
        /// <summary>
        /// Set the value of the text-box
        /// </summary>
        /// <param name="controlId">Id of the text-box button</param>
        /// <param name="value">Text value to be set</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>
        /// <param name="sendTab">True to send tab, else false.</param>
        public void SetText(string controlId, string value, bool useSitemapId = true, FindType sourceType = FindType.ById, bool sendTab = false)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId;

            _client.SetText(locator, value, sourceType, sendTab);
        }