Exemplo n.º 1
0
        /// <summary>
        /// Method to wait for fade-in appearance
        /// </summary>
        /// <param name="element"></param>
        /// <returns></returns>
        public static IWebElement WaitForFadeInAnimation(this IWebElement element)
        {
            string opacity = null;

            while (opacity.Equals("1") != true)
            {
                Waiter.WaitFor(TimeSpan.FromMilliseconds(500));

                opacity = element.GetCssValue("opacity");
            }

            return(element);
        }
Exemplo n.º 2
0
 public static IWebElement WaitForAnimation(this IWebElement element)
 {
     Waiter.WaitFor(TimeSpan.FromMilliseconds(1000));
     return(element);
 }