Is there any way how to print the text from the table?
I've managed to verify if the text is present on the page or not but not 
sure how to print the text.Its a table with 20 rows.


*Then(/^I should see "(.*?)" on the page$/) do |expected_result|
puts (@browser.text.include? expected_result).should == true
puts @browser.td(:text => expected_result)  ###Here I want to print the 
expected_result which is nothing but best
end*

*Sample HTML :*
<tr>
<th>Generation</th>
<td>*best*</td>
</tr>

Any suggestions ?
Thanks in-advance...

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to