Hi Christian,

I don't really know much about qooxdoo 0.7, but maybe you can trigger 
the event by first calling focus() on the combo box, then setting the 
value and finally calling blur().

Regards,
Daniel

On 04/01/2011 02:53 PM, Christian A wrote:
> Hi all,
>
> I try to test the RAP user interface using selenium and the qooxdoo
> user-extensions. In most situations the standard selenium commands in
> conjunction with qooxdoo extensions works very well. But i have a strange
> problem in accessing and editing the selection of a combo box.
> Because selenium sets the combo box value quite unreliable, i wrote some
> javascript based extension functions to do that.
>
> With the code shown below i can successful change the selection of the combo
> box. But the new value will not be synchronized with the server. When i safe
> the changes and reload them, the old value is still displayed. It seems that
> no change event is fired, which causes the server to safe the new value.
>
> In the qooxdoo 0.73 implementation used in RAP, a very poor event mechanism
> is implemented. A function like 'fireEvent' (which is defined in the current
> version) is not available.
>
> Has anybody an idea, how i can fix it?
>
> Thx for your replies.
>
> Selenium.prototype.doSetComboBoxValue = function(locator, value){
>       var uwindow = this.browserbot.getUserWindow();
>       var wmanager = uwindow.org.eclipse.swt.WidgetManager.getInstance();
>       var cmbBox = wmanager.findWidgetById(locator);
>               
>       cmbBox.setValue(value);
> }
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/RAP-qooxdoo-Set-selection-value-of-combo-box-via-javascript-tp6230829p6230829.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to