1

Can anyone suggest a good method to use when you want to check if a element is NOT clickable.
In one of my scripts, I'm trying to verify that a button clickable until a certain action is taken on the screen (like entering text in a field or selection a radio button option)

  • Locating it and checking if it is clickable does not work? Or wait for ExpectedConditions clickable is false? – Peter M. - stands for Monica May 16 '16 at 18:15
  • I'll give that a try and see if that'll work for me. – Tscott May 16 '16 at 20:29
2

Assert.IsFalse(button.Enabled);

| improve this answer | |
-1

It's hard to check if the button is clickable (working) or not without clicking on it.

For your case, so you can use IsDisplayed and IsEnabled to compare status before and after the changes happen.

| improve this answer | |
  • I'll give this a try and report back on this. Thanks! – Tscott May 17 '16 at 17:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.