Hi Tony,
Thanks for trying to help me out.
Here is the ruby script. The app is a servlet. Onmouseover works just fine,
also fire_event("onmousedown") works, but this opens a modal dialog and the
program is stuck on the fire_event line.

require 'rubygems'
require 'watir'

class RunProg
  def Run()
    puts("Inside Run")
    ie = Watir::IE.new
    ie.goto "app_link"
    e = Watir::IE.attach(:title, /APP Title/)
    e.button(:id, "menu_button_id").click
    d = e.div(:id, "sub_menu_div_id")
    t = d.table(:index, 1)
    r = t.row(:index, 1)

    puts e.url


On Wed, Aug 26, 2009 at 9:53 AM, Tony <ynot...@gmail.com> wrote:

> Hi Adrian,
> The above code works fine for me ...  by changing
> img.fire_event_no_wait("mousedown") to img.fire_event_no_wait
> ("onmousedown")
> Maybe you could post the whole code that you are using ... so we could
> take a look at what you are exactly trying to do...??
> Not sure on the threads --
> I believe if there is a blocking part within a thread .. it should not
> block on the other threads.
> Thanks,
> Tony
> >

You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to