How to verify if a button is not clickable in Selenium (C#)?



  • 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)



  • Assert.IsFalse(button.Enabled);



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2