Exemplo n.º 1
0
        public static void JsPropertyInnerText(this IOperationRunner <IElementWrapper> operationRunner, Expression <Func <string, bool> > rule, string failureMesssage = null, bool trim = true)
        {
            var JsPropertyInnerText = new JsPropertyInnerTextValidator(rule, failureMesssage, trim);

            operationRunner.Evaluate <UnexpectedElementStateException>(JsPropertyInnerText);
        }
Exemplo n.º 2
0
        public static void JsPropertyInnerText(IElementWrapper wrapper, Expression <Func <string, bool> > rule, string failureMesssage = null, bool trim = true)
        {
            var jsPropertyInnerText = new JsPropertyInnerTextValidator(rule, failureMesssage, trim);

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