Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 private void Control_GridViewShowHeaderWhenNoData(IBrowserWrapper browser)
 {
     browser.FindElements("[data-ui='ShowHeaderWhenNoDataGrid']").FindElements("th").First().IsDisplayed();
 }
Example #4
0
 private void CheckTreeItems(IBrowserWrapper browser, int level, int count)
 {
     browser.FindElements($"[data-ui='offset_{level}']").ThrowIfDifferentCountThan(count);
 }
Example #5
0
 private static void CheckIfInnerTextEqualsToOne(IBrowserWrapper browser, string dataUi)
 {
     AssertUI.InnerTextEquals(browser.FindElements($"[data-ui='{dataUi}']").First(), 1.ToString());
 }