public void HasAttributeTest4() { RunInAllBrowsers(browser => { browser.NavigateToUrl(); AssertUI.CheckIfHasAttribute(browser.First("#dis-button"), "disabled"); AssertUI.CheckIfHasNotAttribute(browser.First("#submit-button"), "disabled"); }); }
public void CheckIfHasNotAttribute() { RunInAllBrowsers(browser => { browser.NavigateToUrl(); AssertUI.CheckIfHasNotAttribute(browser.First("#content"), "title"); }); }
//[ExpectedException(typeof(UnexpectedElementStateException))] public void HasAttributeTest2() { ExpectException(typeof(UnexpectedElementStateException)); RunInAllBrowsers(browser => { browser.NavigateToUrl(); AssertUI.CheckIfHasNotAttribute(browser.First("#dis-button"), "disabled"); }); }
//[ExpectedException(typeof(UnexpectedElementStateException))] public void CheckIfHasNotAttributeExpectedException() { ExpectException(typeof(UnexpectedElementStateException)); RunInAllBrowsers(browser => { browser.NavigateToUrl(); AssertUI.CheckIfHasNotAttribute(browser.First("#content"), "class"); }); }