Since you're already familiar with Java and using that for your Selenium
RC tests, I'd recommend you stick to that route. There are some java
libraries for reading pdfs as well as likely excel and word files, search on
google, I'd recommend the same for interacting with the Windows dialog which
must be possible in Java, there's also a java to com bridge library called
Jacob which you might look into: http://danadler.com/jacob/

My take is to stay with your current structure unless there's sufficient
reason to introduce Watir.

-Charley


On 4/26/07, Paul Rogers <[EMAIL PROTECTED]> wrote:

if you have the professional version of acrobat, not the downloadable
reader, you can use ole to access it

http://www.adobe.com/devnet/acrobat/pdfs/iac_developer_guide.pdf

I havent read through to see if its possible to extract the text though

----- Original Message -----
From: "Paul Rogers" <[EMAIL PROTECTED]>
To: <wtr-general@rubyforge.org>
Sent: Thursday, April 26, 2007 2:43 PM
Subject: Re: [Wtr-general] Can Watir do - verify the file opened in PDF or
Excelfrom?


> excel and word should be easy enough - watir doesnt do it directly, but
> there are plenty of posts out there to guide you through using the ole
> interface into word/excel from Ruby
>
> I dont know how you would do it for pdf though
>
> Paul
>
> ----- Original Message -----
> From: "Kui Zhang" <[EMAIL PROTECTED]>
> To: <wtr-general@rubyforge.org>
> Sent: Thursday, April 26, 2007 2:25 PM
> Subject: [Wtr-general] Can Watir do - verify the file opened in PDF or
> Excelfrom?
>
>
>> Hello Watir exporters,
>>
>> I am using selenium RC testing tool writing in JAVA to automate the
test
>> cases. I can automate everything in web browser. But the web
application
>> does file download or open file in Acrobat Reader, Word or Excel.  Once
>> the no web Download file window is open, or view file open in
Word/Excel,
>> I could not using selenium to do anything with the files or windows. I
>> need to do the followings with these windows:
>>
>> Enter the file name to download and click OK
>>
>> Make sure the PDF window is open, verify text in the PDF file, and
close
>> the file
>>
>> Make sure the Excel window is open, verify data in the worksheet, and
>> close the file
>>
>> Can Watir handle these cases?
>>
>> Thank you for your help!
>> Kui
>> _______________________________________________
>> Wtr-general mailing list
>> Wtr-general@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wtr-general
>>
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to