Check if element is clickable using selenium

Elements like Buttons, Images,and Links etc… are clickable, and should be enabled to click.

At times we need to check, if an element is enabled to click or not, for this we have isEnabled() in selenium to check.

isEnabled() returns Boolean value, true or false!

in some situations, where an element will be enabled (or clickable) after some action is done or takes some time to enable, for this we can use explicit wait as ExpectedConditions.elementToBeClickable(el)

let’s see the implementation –

Shortlink –

Content posted is based on learning or working experience, please leave comments if anything needs to be added or updated, discuss your queries on our, Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: