Thanks for the input Mark,

Even though a new pop-up opens up, but it's not a new
window.  It's more of a "div block" containing
javascript that opens up.

     -g

--- "Cain, Mark" <[EMAIL PROTECTED]> wrote:

> Is the wizard a separate window that opens?  If yes
> then you might want
> to try:
> #e.g. usage from WATiR API
> #  IE.attach(:url, 'www.google.com') 
> #  IE.attach(:title, 'Google')
> 
> $ie.image(:src, /<gif image name in main UI>/).click
> 
> new_ie  = IE.attach(:title, /<Title of the new
> window>/i)
> 
> new_ie.show_all_objects
> 
> new_ie.span(:index,2).click #index for tab2
> 
> NOTE:  If the window is invoked as showModalDialog
> then you'll need to
> use AutoIT.  WATiR currently does not support
> windows invoked as
> showModalDialog.
> 
> Hope this helps,
> 
> --Mark
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Gavazn Vahshi
> Sent: Wednesday, February 01, 2006 9:41 AM
> To: [email protected]
> Subject: Re: [Wtr-general] My Tab Click problem
> 
> I can't select another tab, don't know how to do it
> here.
> 
> Well when the wizard opens up, it defaults to the
> first tab.  From there I'm unable to select tabs for
> other pages.  For instance if I want to modify stuff
> on the 2nd tab, I'd rather click on the tab in order
> to see it's content.
> 
>     -gavazn
> 
> --- Michael Bolton <[EMAIL PROTECTED]> wrote:
> 
> > What is the problem that you were unable to solve?
> > 
> > ---Michael B. 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> Behalf
> > Of Gavazn Vahshi
> > Sent: January 31, 2006 8:26 PM
> > To: [email protected]
> > Subject: [Wtr-general] My Tab Click problem
> > 
> > Hi All,
> > 
> > I went through the recent email thread for the tab
> > click problem, but unfortunately was unable to
> solve
> > my problem.  I'm knida new to Ruby and Watir and
> any
> > help is greatly appreciated.
> > 
> > It's about a JS pop-up wizard with 4 tabs which
> > opens
> > up when I click on a gif image in main UI.
> > 
> > HTML source for the wizard looks like this (...
> > instead of some tags & extras):
> > 
> > <table id='tabs_table' cellspacing='0' class='tsc'
> > border='0'...
> > <div id='tabset_pstabset'><table cellspacing='0'
> > class='tsc' border='0' cellpadding...
> > <span>title_for_tab1</span></a></td><td
> > height='19'><img width...>...</td><td height='19'
> > class='sel' style='background...>...<a
> > href='#?ctrl=pstabset&action=TabClick&param=tab1'>
> > <span>title_for_tab2</span></a></td><td
> > height='19'><img width...>...</td><td height='19'
> > class='unsel' style...>...<a
> > href='#?ctrl=pstabset&action=TabClick&param=tab2'>
> > ... (total of 4 tabs on page)
> > </table></div>
> > 
> > For my testing purposes I need to click on each
> tab
> > and visit each page.  There're some text fields
> that
> > I
> > need to modify.
> > 
> > Thanks in advance,
> > gavazn
> > 
> > __________________________________________________
> > 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
> > 
> 
> 
> __________________________________________________
> 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
> 


__________________________________________________
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

Reply via email to