Srikanth,
> 1)how to verify the image present in table cell using watir script.
# veify an image in specifc table cell.
@browser.cell(:id, "surveyLabel").html.should include("/images/
main_window_200.png")
> 2) If there any alternate solution (how to identify text area in IE
> Explorer using watir script.)
@browser.text_field(:id, "comments").set("text in area")
> 3)how to verify the number present in table cell using watir script.
@browser.cell(:id, "surveyLabel").html.should include("/images/
main_window_200.png")
Here is a complete (ready to execute) test script
#----------------------
require 'watir'
require 'spec'
spec "iTest2 Demo using Watir - IE" do
before(:all) do
@browser = Watir::IE.start("
http://itest2.com/demo/survey")
end
after(:all) do
@browser.close unless debugging?
end
test "table cell" do
@browser.cell(:id, "surveyId").text.should match(/\d+/) # match
integer
@browser.cell(:id, "surveyId").text.to_i.should == 101 # get
integer
# veify an image in specifc table cell.
@browser.cell(:id, "surveyLabel").html.should include("/images/
main_window_200.png")
end
test "area" do
@browser.text_field(:id, "comments").set("text in area")
end
end
#------------
Cheers,
Zhimin