IE#atach will do it if your window is new browser window
 
ie=Watir::IE.attach(:title,'title') or ie=Watir::IE.attach(:url,'url')
 
Zeljko


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Müller
Sent: Friday, August 19, 2005 10:19 AM
To: [email protected]
Subject: [Wtr-general] Set the Focus to a newly opened Window

I need to set to Focus to a newly opened Window (Opened within the script).
How can I set the Focus to the new Window?

The situation is:

Within a script I press the "login" link -> a new Window open -> all further
action will take place within this window but I cant set the Focus to this
window. Instead I get a Object not found error because the Focus still stays
on the old window (I tested it by pressing a link in the original window
when the new windows is already open).

Can anybody help me?

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to