Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Need to download a file and then have to verify the contents

Reply
Thread Tools

Need to download a file and then have to verify the contents

 
 
Bhavesh Sharma
Guest
Posts: n/a
 
      12-14-2008
Hi,

I have an application [web page], where i have an option to download
files once selected.

Once file is selected, we can click on download button. Till here im
able to do using watir.

But im not able to render through this download dialog using watir.

I need to give location in this Download dialog and then have to save
the file.

Once file is saved at particular location, i need to open/ verify the
contents of that file.

All this i need to do using watir.

Can anybody help me in this regard, how can i do this using watir.

I have AutoIt installed on my machine.

Bhavesh
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Name Surname
Guest
Posts: n/a
 
      12-15-2008
Hi,
you could break this in to several parts.

First, check if you can click a download button with _watir_.

Second, check if you can download a file, download a file with `wget
<your options>`.

Third, check the contents of your downloaded file.


Bhavesh Sharma wrote:
> Hi,
>
> I have an application [web page], where i have an option to download
> files once selected.
>
> Once file is selected, we can click on download button. Till here im
> able to do using watir.
>
> But im not able to render through this download dialog using watir.
>
> I need to give location in this Download dialog and then have to save
> the file.
>
> Once file is saved at particular location, i need to open/ verify the
> contents of that file.
>
> All this i need to do using watir.
>
> Can anybody help me in this regard, how can i do this using watir.
>
> I have AutoIt installed on my machine.
>
> Bhavesh


--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Bhavesh Sharma
Guest
Posts: n/a
 
      12-15-2008
Hi Marius,

Thanks for the information.

But from where i get these routines "_watir_" and "wget"

Also i need to automate the opening and verification of the contents of
the files through watir itself.

Can you help me in this?

Thanks
Bhavesh

Marius Žilėnas wrote:
> Hi,
> you could break this in to several parts.
>
> First, check if you can click a download button with _watir_.
>
> Second, check if you can download a file, download a file with `wget
> <your options>`.
>
> Third, check the contents of your downloaded file.
>
>
> Bhavesh Sharma wrote:
>> Hi,
>>
>> I have an application [web page], where i have an option to download
>> files once selected.
>>
>> Once file is selected, we can click on download button. Till here im
>> able to do using watir.
>>
>> But im not able to render through this download dialog using watir.
>>
>> I need to give location in this Download dialog and then have to save
>> the file.
>>
>> Once file is saved at particular location, i need to open/ verify the
>> contents of that file.
>>
>> All this i need to do using watir.
>>
>> Can anybody help me in this regard, how can i do this using watir.
>>
>> I have AutoIt installed on my machine.
>>
>> Bhavesh


--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if innerHTML used twice then it replaces the contents i want it to display all the contents virendra.amritkar@gmail.com Javascript 0 06-29-2007 08:13 AM
I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted. gavino Python 13 07-03-2006 08:37 AM
When I open laptop lid i have display then it goes away then comes back Ed Computer Support 1 03-02-2006 07:26 PM
How does one play a .wav file and then another and then another...? ted.j.conway@gmail.com Javascript 4 01-17-2006 03:28 AM
Help. SessionID is x then y then x then y BodiKlamph@gmail.com ASP General 0 09-03-2005 03:02 PM



Advertisments