I'm mucking around with the site_prism to implement a Page Object Model in capybara. It looks very interesting.
How would I specify a selector such as "[data-id='x']" where x is an integer? Something like this:
class Home < SitePrism::Page
set_url "http://www.example.com"
element :row, "[data-id='@id']"
end
And then in my tests:
Then /^the home page should contain a row$/ do
@home.should have_row 1234
end