public static void AlertTextEquals(this IOperationRunner <IBrowserWrapper> operationRunner, string expectedValue, bool caseSensitive = false, bool trim = true) { var AlertTextEquals = new AlertTextEqualsValidator(expectedValue, caseSensitive, trim); operationRunner.Evaluate <AlertException>(AlertTextEquals); }
public static void IsNotChecked(this IOperationRunner <IElementWrapper> operationRunner) { operationRunner.TagName("input", "Function IsNotChecked() can be used on input element only."); operationRunner.Attribute("type", new[] { "checkbox", "radio" }, failureMessage: "Input element must be type of checkbox or radio."); var IsNotChecked = new IsNotCheckedValidator(); operationRunner.Evaluate <UnexpectedElementStateException>(IsNotChecked); }
public static void ContainsText(this IOperationRunner <IElementWrapper> operationRunner) { var ContainsText = new ContainsTextValidator(); operationRunner.Evaluate <UnexpectedElementStateException>(ContainsText); }
public static void TitleNotEquals(this IOperationRunner <IBrowserWrapper> operationRunner, string title, bool caseSensitive = false, bool trim = true) { var TitleNotEquals = new TitleNotEqualsValidator(title, caseSensitive, trim); operationRunner.Evaluate <BrowserException>(TitleNotEquals); }
public static void Text(this IOperationRunner <IElementWrapper> operationRunner, Expression <Func <string, bool> > rule, string failureMessage = null) { var text = new TextValidator(rule, failureMessage); operationRunner.Evaluate <UnexpectedElementStateException>(text); }
public static void Url(this IOperationRunner <IBrowserWrapper> operationRunner, Expression <Func <string, bool> > expression, string failureMessage = null) { var Url = new CurrentUrlValidator(expression, failureMessage); operationRunner.Evaluate <BrowserLocationException>(Url); }
public static void UrlEquals(this IOperationRunner <IBrowserWrapper> operationRunner, string url) { var checkUrlEquals = new UrlEqualsValidator(url); operationRunner.Evaluate <BrowserLocationException>(checkUrlEquals); }
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 InnerText(this IOperationRunner <IElementWrapper> operationRunner, Expression <Func <string, bool> > rule) { var innerText = new InnerTextValidator(rule); operationRunner.Evaluate <UnexpectedElementStateException>(innerText); }
public static void TagName(this IOperationRunner <IElementWrapper> operationRunner, string[] expectedTagNames, string failureMessage = null) { var checkTagName = new TagNameValidator(expectedTagNames, failureMessage); operationRunner.Evaluate <UnexpectedElementStateException>(checkTagName); }
public static void NotContainsElement(this IOperationRunner <IElementWrapper> operationRunner, string cssSelector, Func <string, By> tmpSelectMethod = null) { var NotContainsElement = new NotContainsElementValidator(cssSelector, tmpSelectMethod); operationRunner.Evaluate <MoreElementsInSequenceException>(NotContainsElement); }
public static void IsElementNotInView(this IOperationRunner <IElementWrapper> operationRunner, ElementWrapper element) { var IsElementNotInView = new IsElementNotInViewValidator(element); operationRunner.Evaluate <UnexpectedElementStateException>(IsElementNotInView); }
public static void HyperLineEquals(this IOperationRunner <IElementWrapper> operationRunner, string url, UrlKind kind, params UriComponents[] components) { var HyperLinkEquals = new HyperLinkEqualsValidator(url, kind, true, components); operationRunner.Evaluate <UnexpectedElementStateException>(HyperLinkEquals); }
public static void DoesNotContainsText(this IOperationRunner <IElementWrapper> operationRunner) { var DoesNotContainsText = new TextEmptyValidator(); operationRunner.Evaluate <UnexpectedElementStateException>(DoesNotContainsText); }
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 JsPropertyInnerHtmlEquals(this IOperationRunner <IElementWrapper> operationRunner, string text, bool caseSensitive = false, bool trim = true) { var JsPropertyInnerHtmlEquals = new JsPropertyInnerHtmlEqualsValidator(text, caseSensitive, trim); operationRunner.Evaluate <UnexpectedElementStateException>(JsPropertyInnerHtmlEquals); }
public static void AlertTextContains(this IOperationRunner <IBrowserWrapper> operationRunner, string expectedValue, bool trim = true) { var AlertTextContains = new AlertTextContainsValidator(expectedValue, trim); operationRunner.Evaluate <AlertException>(AlertTextContains); }
public static void JsPropertyInnerHtml(this IOperationRunner <IElementWrapper> operationRunner, Expression <Func <string, bool> > expression, string failureMessage = null) { var JsPropertyInnerHtml = new JsPropertyInnerHtmlValidator(expression, failureMessage); operationRunner.Evaluate <UnexpectedElementStateException>(JsPropertyInnerHtml); }
public static void Url(this IOperationRunner <IBrowserWrapper> operationRunner, string url, UrlKind urlKind, params UriComponents[] components) { var checkUrl = new UrlValidator(url, urlKind, components); operationRunner.Evaluate <BrowserLocationException>(checkUrl); }
public static void Attribute(this IOperationRunner <IElementWrapper> operationRunner, string attributeName, string[] allowedValues, bool caseSensitive = false, bool trimValue = true, string failureMessage = null) { var checkAttribute = new AttributeValuesValidator(attributeName, allowedValues, caseSensitive, trimValue, failureMessage); operationRunner.Evaluate <UnexpectedElementStateException>(checkAttribute); }
//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 Attribute(this IOperationRunner <IElementWrapper> operationRunner, string attributeName, Expression <Func <string, bool> > expression, string failureMessage = null) { var Attribute = new AttributeValidator(attributeName, expression, failureMessage); operationRunner.Evaluate <UnexpectedElementStateException>(Attribute); }
public static void Title(this IOperationRunner <IBrowserWrapper> operationRunner, Expression <Func <string, bool> > expression, string failureMessage = "") { var Title = new TitleValidator(expression, failureMessage); operationRunner.Evaluate <BrowserException>(Title); }
public static void Value(this IOperationRunner <IElementWrapper> operationRunner, string value, bool caseSensitive = false, bool trim = true) { var Value = new ValueValidator(value, caseSensitive, trim); operationRunner.Evaluate <UnexpectedElementStateException>(Value); }
public static void TextNotEquals(this IOperationRunner <IElementWrapper> operationRunner, string text, bool caseSensitive = false, bool trim = true, string failureMessage = null) { var textNotEquals = new TextNotEqualsValidator(text, caseSensitive, trim); operationRunner.Evaluate <UnexpectedElementStateException>(textNotEquals); }
public static void HasNotAttribute(this IOperationRunner <IElementWrapper> operationRunner, string name) { var HasNotAttribute = new HasNotAttributeValidator(name); operationRunner.Evaluate <UnexpectedElementStateException>(HasNotAttribute); }
public static void IsSelected(this IOperationRunner <IElementWrapper> operationRunner) { var IsSelected = new IsSelectedValidator(); operationRunner.Evaluate <UnexpectedElementStateException>(IsSelected); }
public static void IsNotClickable(this IOperationRunner <IElementWrapper> operationRunner) { var isNotClickable = new IsNotClickableValidator(); operationRunner.Evaluate <UnexpectedElementStateException>(isNotClickable); }