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,
Share the post with others if find useful,
Any queries?, leave comments or discuss on our, Thanks!

1 Response

  1. Ashutosh Bajpai says:

    in C#.Net
    public static Boolean IsClickable(IWebElement el, IWebDriver driver)
    WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
    return true;
    catch (Exception ex)
    return false;
    if (IsClickable(btnContinue[0], driverENAMCC))
    executorENAMCC.ExecuteScript(“arguments[0].click();”, btnContinue[0]);

Leave a Reply

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