Selenium IDE Drop Down Menu Item

drop-down-menuselenium-ide

I am using Selenium IDE and I have a dynamic drop down menu that I need to select a specific value from. The test works fine until it gets to the part where it must select the item.
My commands so far include:

    type     | id=finditem | se
    typeKeys | id=finditem | se
    

And at this point I have a drop down menu with nothing selected. I used FireFinder to find that the drop down item that I have to select has this:

<<"a class="ui-corner-all" tabindex="-1">>

I also used Firebug to inspect the element and found this CSS path:

html body ul.ui-autocomplete li.ui-menu-item a.ui-corner-all

If anyone has any suggestions that would be great. Thanks.

Best Answer

Use following Command

command select               
Target css=yourdropdowncss   //Css or xpath of that dropdown
Value label=firstitem        //option from dropdown you want to select

Try it..

Related Topic