Thread:Talk:Quality Assurance/Browser testing/How to contribute/Parse a table HTML/reply (2)

Hi

I found : When(/^I enter article table:$/) do |tableWikiText| on(EditPage).article_text = tableWikiText end

Then(/^table should be there:$/) do |table| nodesTR = Nokogiri::HTML(@browser.html).css(".wikitable tr") tableResult = nodesTR.map {|tr| tr.css("th,td").map {|cell| cell.text.strip}} table.diff!(tableResult) end

Bye Karima