Пример #1
0
        /// <summary>
        /// Returns whether the specified checkbox/ radio button is checked or not
        /// </summary>
        /// <param name="controlId">Id of the button</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>true if checked, false otherwise</returns>
        public bool IsChecked(string controlId, bool useSitemapId = true, FindType sourceType = FindType.ById)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId;

            return(_client.IsChecked(locator, sourceType));
        }