[Wtr-general] popup issue
Jassi Akkal
jsakkal at yahoo.com
Fri May 19 11:46:10 EDT 2006
It works :)
Thanks for the Help
Jassi Akkal
--- Andy Sipe <andy__s at hotmail.com> wrote:
> 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 <jsakkal at yahoo.com>
> Reply-To: wtr-general at rubyforge.org
> To: Wtr-general at rubyforge.org
> 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
> jsakkal at yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
jassi akkal
jsakkal at yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Wtr-general
mailing list