Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

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


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