Selenium Webriver - make the data source as excel for a drop down menu
Hi, I have a requirement, where I have read the test data for a drop down menu from excel worksheet. For example, there is a form with a drop down list of countries, I have automate to choose the country based on the excel input? How do I do that using selenium webdriver JUnit.
I always use the Apache POI library for reading Excel files: Apache POI - the Java API for Microsoft Documents
See this post on my web log (shameless self promotion alert) for an example using Selenium and Excel for data driven testing: On Test Automation | Data driven testing in Selenium Webdriver using Excel
True, but only if that drop-down list itself is the subject of the test. If selecting a value from the dropdown list is just a single step in a larger test script, you might want to opt for a different approach.
I can't figure out from the original post whether that's the case, though.
Tags for this Thread