page.has_xpath?("//tr//td[@class='comments' and contains(string(), 'these are the comments')]").should true
I can't figure it out how to access the seventh
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?