XPath to locate DropDown list

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

XPath to locate DropDown list

tarunohri
Hi,
I am unable to select the value from the drop-down list. I was trying to automate the registration page of g-mail using selenium IDE.

https://accounts.google.com/SignUp?continue=https%3A%2F%2Faccounts.google.com%2FManageAccount

Following is the XPath i have tried to select the drop-down but it just hovers the mouse on the selected drop-down value :

open           /SignUp?continue=https%3A%2F%2Faccounts.google.com%2FManageAccount
clickAt         //div[@id='birthday-form-element']/descendant::div[position()=2]
clickAt         //div[@class='goog-menu goog-menu-vertical']/div[9]/div

I have also tried using the select command as follows which doesnt not work either :

open           /SignUp?continue=https%3A%2F%2Faccounts.google.com%2FManageAccount
clickAt         //div[@id='birthday-form-element']/descendant::div[position()=2]
select          //div[@class='goog-menu goog-menu-vertical']/div[9]/div                       label=September

Thanks !!!