public static void InnerText(this IOperationRunner <IElementWrapper> operationRunner, Expression <Func <string, bool> > rule) { var innerText = new InnerTextValidator(rule); operationRunner.Evaluate <UnexpectedElementStateException>(innerText); }
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); }