示例#1
0
 public void CheckIfIsNotChecked_RadioButton_ExceptionExpected()
 {
     RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl("Checkboxes.aspx");
         AssertUI.CheckIfIsNotChecked(browser.Single("#RadioNotChecked"));
     });
 }
示例#2
0
 public void IsNotCheckedTest()
 {
     RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl("Checkboxes.aspx");
         AssertUI.CheckIfIsNotChecked(browser.Single("#checkbox2"));
     });
 }
示例#3
0
 //[ExpectedException(typeof(UnexpectedElementStateException))]
 public void CheckIfIsNotChecked_TagnameTest()
 {
     ExpectException(typeof(UnexpectedElementStateException));
     RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl("Checkboxes.aspx");
         AssertUI.CheckIfIsNotChecked(browser.Single("#span1"));
     });
 }
示例#4
0
        public void CheckCheckboxes()
        {
            RunInAllBrowsers(browser =>
            {
                browser.NavigateToUrl("/Checkboxes.aspx");
                var element = browser.First("#checkbox1").Wait(1200)
                              .CheckIfIsChecked()
                              .Wait(1200)
                              .Click()
                              .Wait(1200);
                AssertUI.CheckIfIsNotChecked(element);

                element = browser.First("#checkbox2").CheckIfIsNotChecked()
                          .Wait(1200)
                          .Click()
                          .Wait(1200);

                AssertUI.CheckIfIsChecked(element);
            });
        }