Beispiel #1
0
        /// <summary>
        /// Click on a button/ radio-button/ check-box present in the page
        /// </summary>
        /// <param name="controlId">Id of the control on which click has to be performed</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 Click(string controlId, bool useSitemapId = true, FindType sourceType = FindType.ById)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId;

            _client.Click(locator, sourceType);
        }