Exemplo n.º 1
0
        public static TElementType ToBeVisible <TElementType>(this TElementType element, int?timeoutInterval = null, int?sleepInterval = null)
            where TElementType : Element
        {
            var until = new WaitToBeVisibleStrategy(timeoutInterval, sleepInterval);

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

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