Skip to content

Elementis exceptions #11

@rizzza

Description

@rizzza

Some of the Capybara finder options return a generic Capybara::ElementNotFound exception without outputting the options requested.

This element is visible, but the test expects it to not be visible.
@page.main_nav.wait_until(1).not.visible

and resulting stacktrace
Capybara::ElementNotFound: Unable to find css "#main-nav"

The exception is confusing, because that element is clearly visible on the page when debugging.

Make the exceptions raised more explicit with better messaging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions