MN -
I've tangled with this control before.  ExtJS is lame because you have
things like this button which doesn't have discrete HTML for all of it's
elements (the button and the associated drop down).  You have two options,
you can:

1) use the mouse to try and move the click point to the dropdown instead of
the button (major PITA - but if you really want to do it you can start
here:
http://www.sencha.com/forum/showthread.php?56916-Testing-Ext-components-with-Ruby-WATIR
)
2) use #execute_script to get a native ExtJS handle to the button and
invoke the control you want (this is kind of cheating, but better than #1)

I wish I could tell you how to do #2 but since I left my previous job I no
longer have access to the code.  If you have an ExtJS developer handy, I
suggest you ask him or her how they would invoke this control in Javascript
and then just execute that with the #execute_script method.  It basically
involves instantiating a handle to the control and then finding ExtJS's
method to invoke the drop down.

Let me know what you find out.

Alan

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to