1. #1
    Ext User
    Join Date
    Aug 2009
    Posts
    1
    Vote Rating
    0
    lorenzk is on a distinguished road

      0  

    Default Using Selenium to test extjs combo boxes

    Using Selenium to test extjs combo boxes


    I'm trying to test an ext combo box the way a user would (i.e. point and click) using Selenium IDE. Here's the snippet of code from the .js file that is used to generate the combo box and its contents:
    Code:
     
    this.compartments = new Ext.form.ComboBox({ 
              hideLabel: true, 
              displayField: 'name', 
              typeAhead: true, 
              mode: 'local', 
              forceSelection: true, 
              triggerAction: 'all', 
              allowBlank: false, 
              editable: false, 
              selectOnFocus:true, 
              width: 70, 
              value: 'None', 
              store: new Ext.data.SimpleStore({ 
                                   fields: ['value', 'name'], 
                                   data : [['none', 'None'], 
                                   ['value1', 'Value One'], 
                                   ['value2', 'Value Two']] 
              }) 
    });
    My desire is to use an XPath or CSS locator to click on the combo box down arrow, and then select either 'Value One' or 'Value Two' from the simple store.Please note that for this question, assume that no other elements (names or ids) can be added to this .js file. The source files cannot be altered in any way. I must be able to select these objects using a locator of sorts.

    Thank you all again for your time in advance!

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    1
    Vote Rating
    0
    quynhtienlu is on a distinguished road

      0  

    Default Selenium ide

    Selenium ide


    It seems like you can use the selenium ide and record the locator.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi