How to retrieve all options in a dropdown using Selenium?

We can retrieve all options in a dropdown using Selenium. All the options in the dropdown are stored in a list data structure. This is achieved with the help of options() which is a method under the Select class. options() returns a list of all options under the select tag. An empty list is returned … Continue reading How to retrieve all options in a dropdown using Selenium?