public static void AlertText(this IOperationRunner <IBrowserWrapper> operationRunner, Expression <Func <string, bool> > expression, string failureMessage = "") { var AlertText = new AlertTextValidator(expression, failureMessage); operationRunner.Evaluate <AlertException>(AlertText); }
public static void AlertText(IBrowserWrapper wrapper, Expression <Func <string, bool> > expression, string failureMessage = "") { var alertText = new AlertTextValidator(expression, failureMessage); EvaluateValidator <AlertException, IBrowserWrapper>(wrapper, alertText); }