예제 #1
0
        public static void InnerText(this IOperationRunner <IElementWrapper> operationRunner, Expression <Func <string, bool> > rule)
        {
            var innerText = new InnerTextValidator(rule);

            operationRunner.Evaluate <UnexpectedElementStateException>(innerText);
        }
예제 #2
0
        public static void InnerText(IElementWrapper wrapper, Expression <Func <string, bool> > rule, string failureMessage = null)
        {
            var innerText = new InnerTextValidator(rule, failureMessage);

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