I don't know what's up with the formatting, the "end #ie.links.each" should be on the next line (or else it'll get tied into the previous comment).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Reed Sent: Wednesday, June 13, 2007 2:24 PM To: [email protected] Subject: Re: [Wtr-general] Save results to file I'm not sure what you're trying to say -- you lost me here. If you want to scrape a page for URLs and then write them to the log file: ie.links.each do |link| # for each link on the current page in IE... textlog.puts link.src # print url of the link in the textlog we created end #ie.links.each Otherwise, please include the purpose of your script and the html from the page you're testing. Thanks, Adam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of B Smith Sent: Wednesday, June 13, 2007 2:17 PM To: [email protected] Subject: Re: [Wtr-general] Save results to file Thanks, The File Create worked...But How do I d'l all the hyperink to the file? I.E. I thought of ie.put(:text,<hyperlink that is dynamically created from search query here>) But, this syntax is more of a 'push' and I'm trying to 'pull' the result data (i.e. scrape results and iterate thru the results into a file) so I know it is wrong before I even tried it -----from watir online tutorial------------- Text Attribute This is the Watir code you need to click a hyperlink using the text attribute: ie.link(:text, "Pickaxe").click What you see in the HTML source (attribute highlighted): ---------end snippet------------------- _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
