Esempio n. 1
0
 public void TextNotEquals()
 {
     RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl("CookiesTest.aspx");
         var label = browser.First("#CookieIndicator");
         AssertUI.CheckIfTextEquals(label, "False");
         AssertUI.CheckIfTextNotEquals(label, "True");
         try
         {
             AssertUI.CheckIfTextNotEquals(label, "False");
             throw new Exception("Exception was expected.");
         }
         catch (UnexpectedElementStateException)
         {
         }
     });
 }