To me that sounds like a lot of extra work what happens once it is in an excel? Why would putting it in an excel be better than asserting it all within the test itself
So I'll go ahead and ask some questions first. Will it happen more than once validating the excel? What sort of data is in the table? Would you be comparing the data in the excel vs data in a data base? If yes, why not let the test do it? Sent from my iPhone On Dec 1, 2011, at 4:43 PM, Mark Ballinger <[email protected]> wrote: > Hi I am a newbie to groups and to ruby, watir, watir-webdriver etc... > > Basically all I would like to do is export a table from a web page > which I have instructed the browser to find using Watir-webdriver. I > just want to take the whole contents of the html table and place it > into Excel for further analysis. > > I have the got the following code to work: > > require 'rubygems' > require 'hpricot' > require "watir-webdriver" > url = "http://www.mycounciltax.org.uk/results? > postcode=cv35+8au&search=Search" > browser = Watir::Browser.new > browser.goto url > > > All i would like to do now is save the table. How do save the html to > a csv or .txt file into my C;\Temp folder? > > Best Regards, > > Mark > > -- > 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] -- 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]
