/// <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); }
public static IWebElement WaitForAnimation(this IWebElement element) { Waiter.WaitFor(TimeSpan.FromMilliseconds(1000)); return(element); }