I have a twitter bootstrap button on which I need to automate a click
How can I best check if a button element is enabled or not?
<button id="myBtn" type="button" class="disabled btn btn-default btn-lg">
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Demos
I was thinking about getting the css class but it didn’t work
any idea how I can achieve this ?
WebElement btn = driver.findElement(By.id("myBtn"));