The Capybara API: Querying
Learn about capybara testing, capybara queries, HTML attributes in capybara queries, minitest assertions and capybara screenshots.
We'll cover the following...
Capybara has a few methods designed to query the simulated browser page to check for various selector patterns in the page. This is one case where the syntax differs slightly between Minitest and RSpec.
Capybara testing
Here the method current_url
is used, which returns as a complete string the current URL that the simulated user is viewing. That’s ...