On my lunch break, I copied your html into the body of an otherwise empty web page. (Had to add a </div> to the end.)

Then I fired up IRB, required 'watir', attached to the page, and tried this:

irb(main):015:0> ie.cell(:text, /Par/).exists?
=> true

irb(main):016:0> ie.cell(:text, /Par/).text
=> "*Parties*"

irb(main):017:0> ie.cell(:text, /Par/).html
=> "\r\n<TD class=blktext1 style=\"CURSOR: hand\" > 'DefaultActionTab','');\" vAlign=bottom align=middle width=81 background=""> /en/tab_on3.gif>*Parties*<BR><IMG height=3 src="" width=1 border=0
 name=a></TD>"

So Watir should be finding this cell. Whether it is kicking off your _javascript_ or not is another matter . . . I do not have a copy of that.

Lonny Eachus
===========


Subject:
Re: [Wtr-general] Click on the Tab
From:
"Chintakrindi Meghanath " <[EMAIL PROTECTED]>
Date:
Mon, 31 Jul 2006 14:48:33 -0400

Hi 

I tried with ie.cell(:text, /Par/).click
but its not working.

Thanks
Meghanath

-----Original Message-----
From: David Schmidt [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 31, 2006 2:33 PM
To: [email protected]
Cc: Chintakrindi Meghanath 
Subject: Re: [Wtr-general] Click on the Tab


You can use the cell text contents to find the cell to click:
  
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to