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(r)
r.fire_event("onmouseover")
r.fire_event_no_wait("onmousedown")
puts e.url
end
end
RunProg.new.Run()
On Wed, Aug 26, 2009 at 9:53 AM, Tony <[email protected]> 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 [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---