Skip to content

SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(IWebelement element) method will encounter a bug if there is a cover layer of loading over the element #14

@EZevan

Description

@EZevan

Hi, just as title described,It is seems that if there is a cover layer of loading over the element(this element will be enabled and displayed at this time),the ElementToBeClickable method will throw a specified element cannot be clicked exception.

Append the source code about above method:
public static Func<IWebDriver, IWebElement> ElementToBeClickable( IWebElement element) { return (Func<IWebDriver, IWebElement>) (driver => { try { if (element != null && element.Displayed && element.Enabled) return element; return (IWebElement) null; } catch (StaleElementReferenceException ex) { return (IWebElement) null; } }); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions