[Wtr-general] popup issue

Jassi Akkal jsakkal at yahoo.com
Fri May 19 11:45:18 EDT 2006


It works :)


Thanks for the help


Jassi Akkal

--- carl.l.shaulis at convergys.com wrote:

> 
> 
> 
> 
> 
> Here is how we handle this type of situation.
> 
>       Access the pop up:
>             @ie.link(:text, "Your Text").click
>       Attaches the Pop UP
>             sleep 10
>             ie2 = IE.attach(:title, "Your Pop Up
> Title")
>       Toggles radio button
>             ie2.radio(:id, "Your Radio button
> ID").set
>       Closes the Pop Up
>             ie2.image(:src ,
> /ps_save_button.gif/).click
> 
> Good luck!
> 
> Carl
> 
> 
> Carl L. Shaulis
> Convergys - Senior Analyst
> 
> 
> 
> 
> 
> 
>                                                     
>                       
>              Jassi Akkal                            
>                       
>              <jsakkal at yahoo.co                      
>                       
>              m>                                     
>                    To 
>              Sent by:                 
> Wtr-general at rubyforge.org           
>              wtr-general-bounc                      
>                    cc 
>              es at rubyforge.org                       
>                       
>                                                     
>               Subject 
>                                        [Wtr-general]
> popup issue           
>              05/18/2006 07:35                       
>                       
>              PM                                     
>                       
>                                                     
>                       
>                                                     
>                       
>              Please respond to                      
>                       
>              wtr-general at rubyf                      
>                       
>                  orge.org                           
>                       
>                                                     
>                       
>                                                     
>                       
> 
> 
> 
> 
> 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