Hooking IE events in Watir

I need to handle the onMouseDown event for the IE controller in Watir.
Has anyone done anything like this before. Using watirMaker.rb as a
starting point, I’m able to wire-up the event by “talking” directly to
the OLE object, but I’d rather go thru the Watir module and use the
IE.getIE() property.

Thanks!

Patrick S. wrote:

I need to handle the onMouseDown event for the IE controller in Watir.
Has anyone done anything like this before. Using watirMaker.rb as a
starting point, I’m able to wire-up the event by “talking” directly to
the OLE object, but I’d rather go thru the Watir module and use the
IE.getIE() property.

Thanks!

I’m working with something similar trying to get a mouse drag to work, I
can certainly grab the object - a good example of doing this is here:

http://zbarzone.blogspot.com/2006/05/drag-and-drop-with-watir.html

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