Ruby ->Watir - Clicking javascript


i have a html file with the following javascript:

                                <td width="60"

id=“toplevel_button4” onclick=“javascript:window.location=’/ATT/listr’” onmouseover=“javascript:window.status=‘General Text’”
onmouseout=“javascript:window.status=’’” title=
“General Text” class=“toplevel_nav_button hand_Cursor”>

can anyone advise on how to get ruby/watir to automatically ‘click’
this. I have played with Watir::IE and Watir::Simple methods but cant
seem to spot it.


On Jul 11, 2006, at 17:25, newyorkdolluk wrote:

seem to spot it.

ie.cell(:id, ‘toplevel_button4’).fire_event(‘onclick’)

– fxn

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs