Some tricks for simplifying Capybara queries
Capybara’s find
method is a lot more powerful than it first appears. In this post, I show how the find(:element, ...)
variation can be used to simplify a common type of query. Capybara also has an interesting configuration option related to test IDs. Check it out! https://mattbrictson.com/blog/simplify-capybara-selectors
Post a comment