looks to me like you are clicking the table cell, but the thing you want to 
click is the link in that cell.

try this

nested5[3][2].link(:index,1).click
In the irb, 
 
I have successfully traversed down to the table item that I wish to
click on, I can flash it properly, but I can't seem to get the 'click'
method to succeed?  Perhaps I need to restart irb and get back to the
appropriate spot in case something got messed up.
 
Here is the raw html
<TR>

<TD CLASS="mpdefault">&nbsp;</TD>

<TD CLASS="mpdefault">

<A HREF="/BANPROD1/twbkwbis.P_GenMenu?name=bmenu.P_StuMainMnu"
class=submenulinktext2 onMouseover="window.status='Registration &
Records'; return true" onMouseout="window.status=''; return true"
onFocus="window.status='Registration & Records'; return true"
onBlur="window.status=''; return true" >Registration & Records</A>

</TD>

</TR>

 

anything special that I am missing?

 

nested5 = ie.table(:index, 6)

=> #<Watir::Table:0x2da09b0 @what=6, @how=:index,
@ieController=#<Watir::IE:0x2
be280 @ie=#<WIN32OLE:0x2dbe208>, @down_load_time=0.032,
@error_checkers=[#<Proc
[EMAIL PROTECTED]:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1135>],
@defau
tSleepTime=0.1, @activeObjectHighLightColor="yellow",
@enable_spinner=false, @u
l_list=[""], @pageHasReloaded=false, @logger=#<Watir::DefaultLogger:0
2dbe190 @progname=nil, @level=2, @logdev=#<Logger::LogDevice:0x2dbe0f0
@shift_s
ze=nil, @shift_age=nil, @filename=nil,
@mutex=#<Logger::LogDevice::LogDeviceMut
x:0x2dbe0b4 @mon_entering_queue=[], @mon_count=0, @mon_owner=nil,
@mon_waiting_
ueue=[]>, @dev=#<IO:0x2756adc>>, @formatter=nil,
@default_formatter=#<Logger::F
rmatter:0x2dbe12c @datetime_format="%d-%b-%Y %H:%M:%S">>,
@typingspeed=0.08, @f
rm=nil>, @originalColor=nil, @o=#<WIN32OLE:0x2da07d0>>


=> nil
irb(main):127:0> nested5[3][2].click()
=> ""
irb(main):128:0> nested5[3][2].click
=> ""
irb(main):129:0> nested5[3][2].focus
=> nil
irb(main):130:0> nested5[3][2].focus()
=> nil
irb(main):131:0> nested5[3][2].fireEvent("onClick")
=> ""
irb(main):132:0> nested5[3][2].fireEvent("onMouseover")
=> ""
irb(main):133:0> nested5[3][2].fireEvent("onMouseover")
=> ""
irb(main):134:0> nested5[3][2].fireEvent("onFocus")
=> ""
irb(main):135:0> nested5[3][2].click
=> ""

It flashes, does the fireEvent, but doesn't change the page?

Cheers,

 

Peter

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to