I've used solution #2 on http://wiki.openqa.org/display/WTR/File+Downloads.

You should be able to modify that code to get an approximate download
time:

time_start = Time.now
# code
# code
time_end = Time.now
download_time = time_start - time_end

Hope it helps.

orde

On Feb 10, 1:30 am, Maumita <maumita.majum...@gmail.com> wrote:
> Hi,
>
> Is this possible to write a watir script that should download a file
> from website to locally and also to measure how long it takes to
> download the file.
> This is a requirement in my project. The main idea is to measure the
> download time of a file.
> Please suggest if there is any way to do this.
> Thanks in advance.
>
> Maumita

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to