How to check button is enabled or disabled in selenium
I am trying to c开发者_如何学Check whether the button is enabled or disabled. I am doing the following
Assert.IsTrue(Browser.IsEditable(button))
but it gives me error that expression does not produce a value. Any one know how to achieve this. Currently I am using VS2010 MStest in vb.net.
Can you assert for the presence of the "disabled" property of the button?
Assert.IsTrue(selenium.IsElementPresent("css=input[disabled]"));
精彩评论