Re: [wtr-general] Export entire html table to a text document

2011-12-02 Thread Željko Filipin
On Fri, Dec 2, 2011 at 1:43 AM, Mark Ballinger mark.j.ballin...@gmail.com
wrote:
 All i would like to do now is save the table.

Is this the same question?

http://stackoverflow.com/q/8355637/17469

Željko
--
watir.com/book - author

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Export entire html table to a text document

2011-12-01 Thread bis
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 mark.j.ballin...@gmail.com 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+8ausearch=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.
 
 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com