开发者

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]"));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜