[Wtr-general] Can Watir Download ".html" Pages...?

Željko Filipin zeljko.filipin at gmail.com
Mon Nov 27 08:23:37 EST 2006


On 11/27/06, san <forum-watir-users at openqa.org> wrote:
>
> Ya It Worked... But I can't Open The Links Again by
>
> webs = ie.links
> webs.each do |web|
>   ie.goto(web)          # This Line Produces Error... I Also Tried
> web.to_s
>   output.puts(ie.html)  # output is a .html file to be opened in w mode
> end


If you posted your error I could say more. In any case this will open all
links in separate windows

ie.links.each {|link| Watir::IE.start(link.href)}

In Fact I Wanna Save All The Linked html Pages in my HDD.


Saving pages with ie.html would not save pictures. You should use some other
tool to do it.
-- 
Zeljko Filipin
zeljkofilipin.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061127/07666209/attachment.html 


More information about the Wtr-general mailing list