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); }
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); }