Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
How do I get the HTML in an element using Capybara?
I'm writing a cucumber test where I want to get the HTML in an element.
within 'table' do
# this works find('//tr//td').text.should == "these are the <b>comments</b>" # I want something like this (there is no "html" method) find('//tr//td').html.should == "these are the <b>comments</b>"
Anyone know how to do this?