RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in