コード例 #1
0
ファイル: EwsAdapter.cs プロジェクト: ProjectAgri20/newrepo
        /// <summary>
        /// Select an option in the drop-down box
        /// </summary>
        /// <param name="controlId">ID of the drop-down box</param>
        /// <param name="optionId">ID of the option to be selected</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 SelectDropDown(string controlId, string optionId, bool useSitemapId = true, FindType sourceType = FindType.ById)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId;

            _client.Select(locator, optionId, sourceType);
        }