Hi,

I've started testing my ext form using selenium. Everything is correct but I don't know how can I set any value into combo. Maybe someone know how should I do this? Below is peace of my code:

Javascript code creating a form:
Code:
addVersionFormWindow= function(){
         this.addVersionForm= new Ext.form.FormPanel({
            labelWidth: 100,
            frame:true,
            width: 500,
            items: [{
                    xtype:'textfield',
                    fieldLabel: '<b>Name</b>',
		    id: 'versionFormName',
                    name: 'fName',
                    value: {/literal}'{$version.name}'{literal},
                    allowBlank:false, 
                    anchor:'95%'
                },
                {
                    xtype:'textarea',
                    fieldLabel: '<b>Description</b>',
		    id: 'versionFormDescription',
                    name:'fDescription',
                    value: {/literal}'{$version.description}'{literal},
                    height:80,
                    anchor:'95%'
                }
                ,{
                    xtype:'datefield',
                    fieldLabel: '<b>Build date</b>',
		    id: 'versionFormDate',
                    name: 'fDate',
                    value: {/literal}'{$version.build_dt}'{literal},
                    readOnly: true,
                    width:'30'
                }
                ,
                {
                    xtype:'combo',
                    fieldLabel: '<b>Type</b>',
		    id: 'versionFormType',
                    name:'fType',
                    value: {/literal}'{$version.ver_type_id}'{literal},
                    store: new Ext.data.SimpleStore({
                        fields: ['id', 'name'],
                        data : version_types
                    }),
                    valueField:'id',
                    displayField:'name',
                    typeAhead: true,
                    mode: 'local',
                    triggerAction: 'all',
                    selectOnFocus:true
                }
                ]
                ,
        buttons: [{
	    id: 'saveVersionWindowForm',
            text: 'Save',
            handler:this.formSubmit,
            scope:this
        },{
	    id: 'cancelVersionWindowForm',
            text: 'Cancel',
            handler: function(){
                this.hide();            
            },
            scope:this
        }]
Python script using selenium for testing:
Code:
        sel = self.selenium
        sel.click("submenu_Product")
        sel.wait_for_page_to_load("30000")
        sel.click("link=" + product_version.getProductName())
        sel.wait_for_page_to_load("30000")
        sel.click("link=Add version")
        sel.type("versionFormName", product_version.getName())
        sel.type("versionFormDescription", product_version.getDesc())
        sel.type("versionFormDate", product_version.getBuild())
        ###
        # How set value for id: versionFormType ???
        ###
        sel.click("saveVersionWindowForm")
Best,
Robert