//TODO //public static void HyperLinkEquals(this IOperationRunner<IBrowserWrapper> operationRunner, string selector, string url, UrlKind kind, params UriComponents[] components) //{ // var HyperLinkEquals = new HyperLinkEqualsValidator(selector, url, kind, components); // operationRunner.Evaluate<UnexpectedElementStateException>(HyperLinkEquals); //} //public static void IsDisplayed(this IOperationRunner<IBrowserWrapper> operationRunner, string selector, Expression<Func<string, By>> tmpSelectedMethod = null) //{ // var IsDisplayed = new IsDisplayed(); // operationRunner.Evaluate<UnexpectedElementStateException>(IsDisplayed); //} //public static void IsNotDisplayed(this IOperationRunner<IBrowserWrapper> operationRunner, string selector, Expression<Func<string, By>> tmpSelectedMethod = null) //{ // var IsNotDisplayed = new Checkers.BrowserWrapperCheckers.IsNotDisplayed(selector, tmpSelectedMethod); // operationRunner.Evaluate<BrowserException>(IsNotDisplayed); //} public static void UrlIsAccessible(this IOperationRunner <IBrowserWrapper> operationRunner, string url, UrlKind urlKind) { var UrlIsAccessible = new UrlIsAccessibleValidator(url, urlKind); operationRunner.Evaluate <BrowserException>(UrlIsAccessible); }
public static void UrlIsAccessible(IBrowserWrapper wrapper, string url, UrlKind urlKind) { var urlIsAccessible = new UrlIsAccessibleValidator(url, urlKind); EvaluateValidator <BrowserException, IBrowserWrapper>(wrapper, urlIsAccessible); }