public static void IsNotDisplayed(IBrowserWrapper wrapper, string selector, Func <string, By> tmpSelectedMethod = null) { var elements = wrapper.FindElements(selector, tmpSelectedMethod); var operationRunner = All(elements); var isNotDisplayedValidator = new IsNotDisplayedValidator(); operationRunner.Evaluate <BrowserException>(isNotDisplayedValidator); }
public static void HyperLinkEquals(IBrowserWrapper wrapper, string selector, string url, UrlKind kind, params UriComponents[] components) { var elements = wrapper.FindElements(selector); var operationRunner = All(elements); var hyperLinkEquals = new HyperLinkEqualsValidator(url, kind, components); operationRunner.Evaluate <UnexpectedElementStateException>(hyperLinkEquals); }
private void Control_GridViewShowHeaderWhenNoData(IBrowserWrapper browser) { browser.FindElements("[data-ui='ShowHeaderWhenNoDataGrid']").FindElements("th").First().IsDisplayed(); }
private void CheckTreeItems(IBrowserWrapper browser, int level, int count) { browser.FindElements($"[data-ui='offset_{level}']").ThrowIfDifferentCountThan(count); }
private static void CheckIfInnerTextEqualsToOne(IBrowserWrapper browser, string dataUi) { AssertUI.InnerTextEquals(browser.FindElements($"[data-ui='{dataUi}']").First(), 1.ToString()); }