Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
Tester
Posts : 2
Join date : 2010-07-19

Select the value in Dropdown in Selenium IDE. Empty 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
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Select the value in Dropdown in Selenium IDE. Empty 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
avatar
sivaprasad
Posts : 1
Join date : 2010-10-14

Select the value in Dropdown in Selenium IDE. Empty 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
avatar
GabrielaC81
Posts : 2
Join date : 2012-01-31

Select the value in Dropdown in Selenium IDE. Empty 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:((
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Select the value in Dropdown in Selenium IDE. Empty 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:

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.
Sponsored content

Select the value in Dropdown in Selenium IDE. Empty Re: Select the value in Dropdown in Selenium IDE.

Back to top
Permissions in this forum:
You cannot reply to topics in this forum