[Wtr-general] My Tab Click problem

Cain, Mark Mark_Cain at rl.gov
Wed Feb 1 13:31:37 EST 2006


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: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Gavazn Vahshi
Sent: Wednesday, February 01, 2006 9:41 AM
To: wtr-general at rubyforge.org
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 <mb at michaelbolton.net> wrote:

> What is the problem that you were unable to solve?
> 
> ---Michael B. 
> 
> -----Original Message-----
> From: wtr-general-bounces at rubyforge.org
> [mailto:wtr-general-bounces at rubyforge.org] On Behalf
> Of Gavazn Vahshi
> Sent: January 31, 2006 8:26 PM
> To: wtr-general at rubyforge.org
> 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
> 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
> 


__________________________________________________
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




More information about the Wtr-general mailing list