示例#1
0
 public void HasAttributeTest4()
 {
     RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl();
         AssertUI.CheckIfHasAttribute(browser.First("#dis-button"), "disabled");
         AssertUI.CheckIfHasNotAttribute(browser.First("#submit-button"), "disabled");
     });
 }
示例#2
0
        public void CheckIfHasNotAttribute()
        {
            RunInAllBrowsers(browser =>
            {
                browser.NavigateToUrl();

                AssertUI.CheckIfHasNotAttribute(browser.First("#content"), "title");
            });
        }
示例#3
0
 //[ExpectedException(typeof(UnexpectedElementStateException))]
 public void HasAttributeTest2()
 {
     ExpectException(typeof(UnexpectedElementStateException));
     RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl();
         AssertUI.CheckIfHasNotAttribute(browser.First("#dis-button"), "disabled");
     });
 }
示例#4
0
        //[ExpectedException(typeof(UnexpectedElementStateException))]
        public void CheckIfHasNotAttributeExpectedException()
        {
            ExpectException(typeof(UnexpectedElementStateException));
            RunInAllBrowsers(browser =>
            {
                browser.NavigateToUrl();

                AssertUI.CheckIfHasNotAttribute(browser.First("#content"), "class");
            });
        }