Hi all,

Here is a new problem need your help, thank you very much.

What I want to do:
In one search answer page, I ask question and the answers are returned. and 
also there are many kinds of answers, such as: txt, html, DOC, PDF, XLS. 
when I click the answer: txt or html, that will be opened in the browser, 
but for the other types of answers, that will popup a window to download or 
open it. 

For me, I need to do the correct action according to the type of answers.
1. If the answer is txt or html, I click it, the page turned to another new 
page with the same browser, I need click page back.(This is easy)
2. If the answer is DOC or PDF or XLS, I click it, a window will popup to 
notify me to save or download this answer, I need to click cancel or to 
close this window. (For this one, I don't know how to judge that a window 
popup and how to click "cancel" to close the window)

I'm looking forward your reply!

Best Regards
Doris 

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to