kflood
4 years agoOccasional Contributor
Clicking on disabled buttons to verify if nothing happens returns error
Hello,
I'm trying to verify that if you click on a button that is visible but disabled nothing happens. If I use .ClickButton(), this will result in an error as the button is disabled. If I use .Click() I get a warning that the button is disabled(what I want) and that the action was performed incorrectly. What are some recommendations to work around this?
Thank you,
Kyle
this method would not be as functional,
but you could do a property checkpoint on that button (property being .Enabled = False )