public static TElementType ToExists <TElementType>(this TElementType element, int?timeoutInterval = null, int?sleepInterval = null) where TElementType : Element { var until = new WaitToExistStrategy(timeoutInterval, sleepInterval); element.EnsureState(until); return(element); }
public static TComponentType ToExists <TComponentType>(this TComponentType element, int?timeoutInterval = null, int?sleepInterval = null) where TComponentType : AndroidComponent { var until = new WaitToExistStrategy <AndroidDriver <AndroidElement>, AndroidElement>(timeoutInterval, sleepInterval); element.EnsureState(until); return(element); }