Click here to Skip to main content
15,905,232 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to make selenium select a 'title' among many in a drop down menu?

That is I have a windows app which gets a user input. I want selenium to select an option from a drop down menu based on what the user entered. It is not possible to select that based on CSS,Id or any other attribute since we can't predict what the user enters. So, I think the only possibility is that to search the exact string inside the drop down menu.

I could make selenium focus on that drop down and the menu is now viewable. I want the rest of the things done..Can this be implemented?If yes, Can anyone give me an idea on how to achieve that?

Would be nice if you can give me an idea based on c# since I am using it for the development.

Many thanks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900