Esempio n. 1
0
 /// <summary>
 /// The selector should target the original element that's been wrapped
 /// by kendo.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="selector">The selector.</param>
 /// <param name="driver">The driver.</param>
 /// <param name="animationData">The animation data.</param>
 /// <param name="parent">The parent.</param>
 public KDropDownComponent(BaseKendoConfiguration configuration,
                           By selector,
                           IWebDriver driver,
                           KDropDownAnimationOptions animationData,
                           T parent)
     : base(configuration,
            selector,
            driver,
            parent)
 {
     this.configuration = configuration;
     this.animationData = animationData;
 }
Esempio n. 2
0
        /// <summary>
        /// Waits for animation end.
        /// </summary>
        /// <param name="animationData">The animation data.</param>
        protected virtual void WaitForAnimationEnd(
            KDropDownAnimationOptions animationData = null)
        {
            var data = animationData ?? this.animationData;

            if (!data.AnimationsEnabled)
            {
                return;
            }

            GetPromiseForKendoEvent(IsExpanded() ? "close" : "open")
            .Wait(data.AnimationDuration);
        }