Something like:

ie.image(:id, "btnCreateContract").click
ie.image(:id, "btnChooser").click

test_site2 = Watir::IE.attach(:url, 'http://abc.com')
test_site2.radio(:id, /radio1/).set
test_site2.button(:id, /btnOK/).click

sleep(xxx)  #you may or may not need this depending on how the popup changes 
the originating window

... do other things with ie ....

-andy

----Original Message Follows----
From: Jassi Akkal <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: [Wtr-general] popup issue
Date: Thu, 18 May 2006 17:35:35 -0700 (PDT)

Hi,

I am testing web based application using watir where
when i select on the button it opens popup windows.

I am using attach method that allows me to access the
control on new window.
Once I am at the popup window i want to select the
radio button.

My code is

1e.image(:id, "btnCreateContract").click
ie.image(:id, "btnChooser").click

test_site2 = Watir::IE.attach(:url, 'http://abc.com')

i have assigned new window to variable(test_site2)
where i think i can be wrong.

Please help to define the new window and how i can
read the radio button once i am at the new window

Thanks

Jassi Akkal

jassi akkal
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


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

Reply via email to