how to select value from a drop down using Selenium IDE
I tried the below and it worked
Command: Select
Target : element Locator eg : id = card
Value : index=1
Use command select(selectLocator, optionLocator)
, 'selectLocator' is the Id of the drop down from which the value is being selected and the 'optionLocator' is the value being selected.
For eg: say a drop down having Id="//select[@id='type'"
with values like 'TypeA, TypeB, TypeC,...'. If you are selecting 'TypeA' from the drop down, your command should go like this:
selenium.select("//select[@id='type']", "label=TypeA");
I hope this will solve your problem.
General approach is firstly click on the element and then select value from the element.
For Clicking : 1.Command : click2.target : element locator like xpath/id/class of the element eg. xpath=xpath of the element
For Selecting value: 1.Command : select2.target : same element locator used for clicking3.Value : Visible text you want to select / Index (You will get it by inspecting that element)