ok thnx, what a about bigger files? downloading something that is invoked by the link click?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Can you show me the example of this www:mechanize beacuse i don't know how to do itthnx Luke
___Wtr-general mailing listWtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
You can also use Ruby's Net Http standard library if you just want to
do a simple file download:
require 'net/http'
Net::HTTP.start(www.ruby-lang.org) { |http|
resp = http.get(/images/logo.gif)
open(rubylogo.gif, wb) { |file|
file.write(resp.body)
}
}
-Charley
On 9/25/06, Luke [EMAIL
Here's a way to get a binary file and save it locally using net/http, built
from the example on this site:
http://www.rubynoob.com/articles/2006/08/21/how-to-download-files-with-a-ruby-script
# Save the google logo.gif to the current dir.
require
is it possible to download a file from page without invoking window to specify name file, path, dialog with save, cancel buttons, can make it automatically, just specify link to a file and path in code ?Luke
___
Wtr-general mailing list
Luke schrieb:
is it possible to download a file from page without invoking window to
specify name file, path, dialog with save, cancel buttons, can make it
automatically, just specify link to a file and path in code ?
I´ve realized this with a system call and wget (yes, there is a windows
is it possible to download a file from page without invoking window to specify name file, path, dialog with save, cancel buttons, can make it
automatically, just specify link to a file and path in code ?I´ve realized this with a system call and wget (yes, there is a windowsversion, google for
Hi all,
i have a problem with downloading a file. How to handle the File Save - Popup?
I have found this http://jira.openqa.org/browse/WTR-63 when searching the web,
but it doesnŽt work: Nothing happens, I donŽt even get an error message.
Thanks for advice,
Chriss
I want to get Watir to load a page, press a download file button and
save the file.
This first part works fine - and the File Download dialog comes up
- PART 1
require 'Watir'
include Watir
ie = IE.new
ie.goto(http://example.com;)
ie.button(:value,Login).click
Take a look at winClicker.rb, clickWindowsButton should work, something like this: require 'watir/winClicker'clicker = WinClicker.newclicker.clickWindowsButton('File Download', 'Save')-Charley
On 6/28/06, Andy Case [EMAIL PROTECTED] wrote:
Hi,
I get the following
Pop-up from my
.
Hope this helps,
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Charley Baker
Sent: Thursday, June 29, 2006 8:03
AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] File
Download Pop-Ups
Take a look at winClicker.rb, clickWindowsButton
Good afternoon:
I have two areas where I am currently blocked.
The most important concern is dowloading a file. I use Winclicker
successfully for handling other pop-ups in our application but when if
comes to File Download it does not appear to work. Searching the archives
I find reference
12 matches
Mail list logo