capybara_error_intel
Capybara provides excellent error messages for its built in predicate methods: has_selector?, has_text?, has_title? etc.. but when those are used from Page Objects while exposing predicate methods from the PageObjects themselves the error messages are lost and all we get is "expected true, got false". Including this module into your PageObject by adding "include CapybaraErrorIntel::DSL" after "include Capybara::DSL" will return the heuristic error messages.
Activity
- Latest release
- 4y ago
- Total releases
- 9
- Cadence
- ~22 days
- Last 12 months
- 0
Details
- License
- MIT
- First release
- Sep 14, 2016
Releases