Exemple #1
0
        public static void IsNotDisplayed(IBrowserWrapper wrapper, string selector, Func <string, By> tmpSelectedMethod = null)
        {
            var elements                = wrapper.FindElements(selector, tmpSelectedMethod);
            var operationRunner         = All(elements);
            var isNotDisplayedValidator = new IsNotDisplayedValidator();

            operationRunner.Evaluate <BrowserException>(isNotDisplayedValidator);
        }
        ///<summary>Provides elements that satisfies the selector condition at specific position.</summary>
        /// <param name="tmpSelectMethod">temporary method which determine how the elements are selected</param>
        public IElementWrapperCollection <IElementWrapperFluentApi, IBrowserWrapperFluentApi> CheckIfIsNotDisplayed(string selector, Func <string, By> tmpSelectMethod = null)
        {
            var collection = FindElements(selector, tmpSelectMethod);

            var validator = new IsNotDisplayedValidator();

            var runner = new AllOperationRunner <IElementWrapper>(collection);

            runner.Evaluate <UnexpectedElementStateException>(validator);

            return(collection);
        }
Exemple #3
0
        public static void IsNotDisplayed(this IOperationRunner <IElementWrapper> operationRunner)
        {
            var isNotDisplayed = new IsNotDisplayedValidator();

            operationRunner.Evaluate <UnexpectedElementStateException>(isNotDisplayed);
        }
Exemple #4
0
        public static void IsNotDisplayed(IElementWrapper wrapper)
        {
            var isNotDisplayed = new IsNotDisplayedValidator();

            EvaluateValidator <UnexpectedElementStateException, IElementWrapper>(wrapper, isNotDisplayed);
        }