Bret Pettichord wrote:
> 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
>
I did mispeak a bit above. It's the "rightclick" that I don't see as an
event to fire. "onClick" works, but trying to do a fire_event of
"rightclick" doesn't find that event to fire. The ole_methods will show
all OLE methods available for that element, and while you can do an
"onClick" and a number of other events on a DIV, I don't see any
"rightclick" listed.
David
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general