Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elementis exceptions #11

Open
rizzza opened this issue Dec 18, 2015 · 0 comments
Open

Elementis exceptions #11

rizzza opened this issue Dec 18, 2015 · 0 comments

Comments

@rizzza
Copy link
Owner

rizzza commented Dec 18, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant