The problem in this case is exactly what it says. A DIV element in the
> DOM doesn't *have* a fireEvent OLE call.  (I just brought up IRB, 
> attached to an IE window open to unittests/html/div.html, assigned the 
> first DIV element to a variable and then had it show me all the valid 
> OLE methods:
>
> irb(main):001:0> require 'watir'
> => true
> irb(main):002:0> include Watir
> => Object
> irb(main):020:0> ie = IE.attach(:title, /Div/);nil
> => nil
> irb(main):021:0> d = ie.div(:id, 'div1');nil
> => nil
> irb(main):022:0> d.document.ole_methods
> => [setAttribute, getAttribute, removeAttribute,...
>
> No fireEvent, as the error message below stated.
>
> Ċ½eljko, are you sure that the right click event was in the DIV and not in 
> another element inside of the DIV?
>   
David (OP):

This may be a bug in fire_event in 1.5.

Does this work? (or at least give a different error message?)

    div = ie.div(:id, "detailProposal0610760")
    div.locate
    dif.fire_event("rightclick")

Bret


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to