Skip to content

[python] provide element locator in the error when element is invisible #3917

Closed
@php-coder

Description

@php-coder

When we're trying to interact with invisible element from Python library we got an exception with the following message: You may only interact with visible elements. When this message is showing to user it doesn't help him to debug this situation because it miss the information about element itself.

I'm suggesting to include element locator in the error message, for example: Element id=my-bth is invisible. You may only interact with visible elements.

(I was initially reported this to the Selenium2Library (https://github.com/robotframework/Selenium2Library/issues/769) but author has said that this is Selenium issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-dotnet.NET BindingsC-javaJava BindingsC-nodejsJavaScript BindingsC-pyPython BindingsC-rbRuby Bindings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions