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