public static TComponentType ToHasSpecificStyle<TComponentType>(this TComponentType element, string style, int? timeoutInterval = null, int? sleepInterval = null)
     where TComponentType : Component
 {
     var until = new WaitToHasStyleStrategy(style, timeoutInterval, sleepInterval);
     element.EnsureState(until);
     return element;
 }
示例#2
0
        public static TElementType ToHasStyle <TElementType>(this TElementType element, string style, int?timeoutInterval = null, int?sleepInterval = null)
            where TElementType : Element
        {
            var until = new WaitToHasStyleStrategy(style, timeoutInterval, sleepInterval);

            element.EnsureState(until);
            return(element);
        }