On my Rails project, I am using RSpec and Capybara to write functional tests.
I did not want to specify any HTML elements in my Capybara feature files, since that makes the
feature files brittle to HTML / CSS changes. It also violates the DRY principle and basic code hygiene.
Read the full blog on my older blog site here: Using Capybara and Rspec assertions in Page Objects