title: Check if button is enabled or not Selenium Webdriver
body: <p>I am trying to check if button is enabled or disabled on the webpage. I have tried below methods but they all return true even if the button is disabled.</p>
  
  <pre><code>Boolean z = Driver.findElement(By.id("ext-gen81")).isEnabled();
  System.out.println(z);
  Boolean y = Driver.findElement(By.id("ext-gen72")).isEnabled();
  System.out.println(y);
  Boolean u = Driver.findElement(By.id("ext-gen81")).isDisplayed();
  System.out.println(u);
  Boolean v = Driver.findElement(By.id("ext-gen72")).isDisplayed();
  System.out.println(v);
  </code></pre>
  
  <p>Also html text for button is same when it is enabled or disabled.</p>
  
  <p></p>
  
  <p>Can anyone please suggest any better idea.</p>