Hi Adrian,
Please note - make sure you have edited the element.rb to include
fire_event_no_wait code.
Using the above fire_event_no_wait iam able to do a fire event on a
mousedown.
Here's an example of the mousedown and mouseover event (should work
with any events)-
require 'watir'
iewin = Watir::IE.new
iewin.goto("http://www.w3schools.com/jsref/tryit_view.asp?
filename=tryjsref_onmousedown")
img = iewin.image(:xpath, "//img")
img.fire_event_no_wait("mousedown")
puts "will return now without waiting for alert box"
## wait for a few secs and the alert box will come up ....
sleep 5
iewin.goto("http://www.w3schools.com/jsref/jsref_onmouseover.asp")
img = iewin.image(:alt, "W3Schools")
img.fire_event_no_wait("onmouseover")
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
-~----------~----~----~----~------~----~------~--~---