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
shrutika
Posts : 4
Join date : 2014-09-26

selenium RC not able to choose a value in drop-down list  which is build using ul tag... Empty selenium RC not able to choose a value in drop-down list which is build using ul tag...

Sat Oct 11, 2014 7:18 pm
I am using selenium-RC for my automation with java (Eclipse Kepler) . I am facing some issues with a selection of a option in a drop down list which is not in select tag it is in span.

I want to test a page where their is a drop-down list for selection of city name. the drop-down appears only when I give some value e.g for "Bangalore" I have to type "ban" so the drop-down appears and then I select the city Bangalore either with "mouse click" or either with "down-arrow and enter key" but when I run my selenium rc script it fails after typing "ban" the drop-down doesn't appears. i tried using both xpath and id in select command,click command. I am stuck over here please please someone help me to solve this issue.I think it is dynamic and based on JavaScript functions.One more ..The next two drop down are depended on the first drop-down(i.e the second and third drop-down are hidden and first drop-down is shown by_default.) I am sending the link of page where i am trying to test script: https://pizzaonline.dominos.co.in

I tried using following commands:-
Code:
w.click("//*[@id='homedeliveryform']/div[1]/span/a/span[1]");
w.click("//*[@id='ui-active-menuitem']");
Code:
w.type("//*[@id='homedeliveryform']/div[1]/span/input","ban");
w.click("//*[@id='ui-active-menuitem']");
Code:
w.select(" id=combobox", "value=BANGALORE");
Code:
w.type(" id=combobox", "value=BANGALORE");
Back to top
Permissions in this forum:
You cannot reply to topics in this forum