I\'m new to Selenium and need to check if element is clickable in Selenium Java, since element.click() passes both on
Selenium
Java
element.click()
the class attribute contains disabled when the element is not clickable.
disabled
WebElement webElement = driver.findElement(By.id("elementId")); if(!webElement.getAttribute("class").contains("disabled")){ webElement.click(); }