Exemple #1
0
 public static void CheckArticleCount(BrowserWrapper browser, string repeaterUiId, int expectedCount)
 {
     var articles = browser.First($"div[data-ui='{repeaterUiId}']").FindElements("article[data-ui='test-article']");
     if (articles.Count != expectedCount)
     {
         throw new UnexpectedElementStateException($"There should be only 2 article in the repeater. There are {articles.Count}");
     }
 }
Exemple #2
0
 private static void ChangeAndTestLocalization(BrowserWrapper browser)
 {
     browser.First("p").CheckIfInnerTextEquals("This comes from resource file!", false, true);
     // change language
     browser.Last("a").Click();
     browser.First("p").CheckIfInnerTextEquals("Tohle pochází z resource souboru!", false, true);
 }