Esempio n. 1
0
        /// <summary>
        /// Sets the date on the date control.
        /// </summary>
        /// <param name="locator">The locator.</param>
        /// <param name="value">Date time value to be set.</param>
        /// <param name="type">Type of locator.</param>
        /// <param name="sendTab">True to send tab, else false.</param>
        public void SetDateControlText(string associatedControl, DateTime value, FindType sourceType = FindType.ById, bool useSitemapId = true)
        {
            string locator = useSitemapId == true?_siteMapData.GetLocator(associatedControl, out sourceType) : associatedControl;

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