I want to get values(String) listed in a dropdown, and compare those values with a predefined list of values(String). I'm trying to implement this in Selenium WebDriver using JAVA as scripting language. Can anyone please guide me through?
Situation: Suppose in a webpage there is a dropdown listing country names, I want to read those country names from dropdown, and verify each of them is present in an existing list of country names.