Is the content of the tabs displayed in an iFrame? If you could post the entire html for the main page and popup wizard it would help.
--Mark -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gavazn Vahshi Sent: Wednesday, February 01, 2006 11:00 AM To: [email protected] Subject: Re: [Wtr-general] My Tab Click problem I don't know if that helps or not. When I first open the wizard (showing 1st tab) and do ie.showAllObjects, I get some stuff. Then when I click on the 2nd tab and do ie.showAllObjects I get the extra line below: hidden name=com.cc.framework.state id=com.cc.framework.state value=ctrl=pstabset;first=tab1;selected=tab2 alt= src= Is there a way to use this info to access tab2? Thanks, -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¶m=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¶m=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 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
