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
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:
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?
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
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
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
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...?
It Says