Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Select the value in Dropdown in Selenium IDE.

View previous topic View next topic Go down

Select the value in Dropdown in Selenium IDE.

Post by Tester on 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

Tester

Posts : 2
Join date : 2010-07-19

Back to top Go down

Re: Select the value in Dropdown in Selenium IDE.

Post by Adviser on 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

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: Select the value in Dropdown in Selenium IDE.

Post by sivaprasad on Thu Oct 14, 2010 4:52 pm

hi,
you can select element on the basis of index
example:index=1

sivaprasad

Posts : 1
Join date : 2010-10-14

Back to top Go down

Re: Select the value in Dropdown in Selenium IDE.

Post by GabrielaC81 on 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:((

GabrielaC81

Posts : 2
Join date : 2012-01-31

Back to top Go down

Re: Select the value in Dropdown in Selenium IDE.

Post by faramka on 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.

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: Select the value in Dropdown in Selenium IDE.

Post by Sponsored content Today at 3:26 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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