top button

How to check if a button is enabled page?

0 votes
10 views
posted Apr 29 by Arun

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

We can Use isEnabled() method. The return type of the method is boolean. So if it returns true then the button is enabled else not enabled.

driver.findElement(By.id(“id_of_element”)).isEnabled();

Now that you have gone through these selenium interview questions, it is time to take a short selenium WebDriver quiz.

Tags: Agile Testing, API Testing, Selenium WebDriver, Test Automation

answer May 1 by Arunkumaarts
...