I think you're looking for wget; Google it.
---Michael B.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of san
Sent: November 27, 2006 11:55 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Can Watir Download ".html" Pages...?
> And Can You Tell Me Any Other Way To Save .html Pages Intact.
Take a look at http://forums.openqa.org/message.jspa?messageID=14044#14044
There is some code that can be used to save the page as rendered. (I believe
that ei.html only will give you the page as downloaded.)
~~ Egil
---
It Says That It Needs An Absolute Path In ie.goto(), It Cant Recognize The
Array Elements Named [i]web[/i] Here
And Can You Tell Me Any Other Way To Save .html Pages Intact.
-
Posted via Jive Forums
http://forums.openqa.o
On 11/27/06, san <[EMAIL PROTECTED]> 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 po
lol lol :)
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
In Fact I Wanna Save All The Linked html Pages
On 11/27/06, san <[EMAIL PROTECTED]> wrote:
Will It Work?
webs = ie.links
webs.each do |web|
puts web
end
Try it and you will see if it works. :)
Can You Tell Me From Where Can I Get All These Watir Functions...?
Is There Any Good Quality Tutorial?
http://www.openqa.org/watir/watir_u
Thanks [b]Zeljko[/b]
But How Can I Save All These Links In An Array Of Strings?
Will It Work?
webs = ie.links
webs.each do |web|
puts web
end
Can You Tell Me From Where Can I Get All These Watir Functions...?
Is There Any Good Quality Tutorial?
On 11/27/06, san <[EMAIL PROTECTED]> wrote:
Is It Possible To Save The Page As .html
ie.html will show you html of the page:
Or Is It Possible To Get All The Links In That Page
ie.links is array of all links at that page
Including Its Own url
ie.url will give you url of page
--
Zeljko F
Look At This Code Please...
[i]ie = Watir::IE.new
ie.goto('http://www.something.com')
ie.text_field(:name, "userid1").set(".")
ie.text_field(:name, "userpass").set(".")
ie.image(:src, /login/).click[/i]
Now Obviously After The Click A Page Opens. My Question Is, Is It Possible To