Пример #1
0
        public static TElementType ToNotExists <TElementType>(this TElementType element, int?timeoutInterval = null, int?sleepInterval = null)
            where TElementType : Element
        {
            var until = new WaitNotExistStrategy <AndroidDriver <AndroidElement>, AndroidElement>(timeoutInterval, sleepInterval);

            element.EnsureState(until);
            return(element);
        }
        public static TComponentType ToNotExists <TComponentType>(this TComponentType element, int?timeoutInterval = null, int?sleepInterval = null)
            where TComponentType : IOSComponent
        {
            var until = new WaitNotExistStrategy <IOSDriver <IOSElement>, IOSElement>(timeoutInterval, sleepInterval);

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