- Tester
- Posts : 2
Join date : 2010-07-19
Select the value in Dropdown in Selenium IDE.
Mon Jul 19, 2010 12:18 pm
Hi,
I am using selenium IDE, problem is in my project there is option of multiple language like "French","English". etc. So on the subscription page there is one field "Security ques", and its difficult to take the id of dropdown without label because if i'll take the label then it'll run on one language. the command is
select
security-question
label=Votre couleur préférée?
I need the command in which label is not required.
Please suggest if anybody have some info.
Thanks
Shivani
I am using selenium IDE, problem is in my project there is option of multiple language like "French","English". etc. So on the subscription page there is one field "Security ques", and its difficult to take the id of dropdown without label because if i'll take the label then it'll run on one language. the command is
I need the command in which label is not required.
Please suggest if anybody have some info.
Thanks
Shivani
Re: Select the value in Dropdown in Selenium IDE.
Mon Jul 19, 2010 10:30 pm
Hi,
You can select element on the basis of Id also
like : id =2 (gives 3 element in list)
Best of luck
bye
You can select element on the basis of Id also
like : id =2 (gives 3 element in list)
Best of luck
bye
- sivaprasad
- Posts : 1
Join date : 2010-10-14
Re: Select the value in Dropdown in Selenium IDE.
Thu Oct 14, 2010 4:52 pm
hi,
you can select element on the basis of index
example:index=1
you can select element on the basis of index
example:index=1
- GabrielaC81
- Posts : 2
Join date : 2012-01-31
Re: Select the value in Dropdown in Selenium IDE.
Tue Jan 31, 2012 5:27 pm
Hi,
I'm new to Selenium and I really need your help
I'm using the selectAndWait command
I use the right id value, i.e: id=P4_ABC and for optionLocator I have the right value label=wonderful, exactly as they are in the application's code and I still get [error] Element id=P4_ABC not found
I don't get it why, what am I doing wrong? Please help me. I have lots of other dropdowns so if I don't get this step to pass, I will not be able to automate anything:((
I'm new to Selenium and I really need your help
I'm using the selectAndWait command
I use the right id value, i.e: id=P4_ABC and for optionLocator I have the right value label=wonderful, exactly as they are in the application's code and I still get [error] Element id=P4_ABC not found
I don't get it why, what am I doing wrong? Please help me. I have lots of other dropdowns so if I don't get this step to pass, I will not be able to automate anything:((
- faramkaProfessional
- Posts : 143
Join date : 2011-09-15
Location : Poland
Re: Select the value in Dropdown in Selenium IDE.
Wed Feb 01, 2012 6:10 pm
The first argument in selectAndWait command is locator of the dropdown list and the second is locator of option which you want to choose.
So in this case:
Command: selectAndWait
Target: list
Value: option 2
If it doesn't work at all, you can examine dropdown lists by Firebug and check their identifiers or xPaths.
So in this case:
- Code:
<select id="list">
<option id="opt1">option 1</option>
<option id="opt2">option 2</option>
<option id="opt3">option 3</option>
</select>
Command: selectAndWait
Target: list
Value: option 2
If it doesn't work at all, you can examine dropdown lists by Firebug and check their identifiers or xPaths.
Permissions in this forum:
You cannot reply to topics in this forum