Below are the steps to select all dropdown options:-
First, you need to find the SELECT WebElement by webdriver.
After that create and select a class which is used to operate the dropdown list.
Then get all options list in the dropdown list.
After that loop the options list, get each option value and use Select.selectByValue(optionValue) to select it.
At last, all the dropdown option has been selected.
If you want to learn Selenium and want to make your career in software testing then you must take up the following Selenium Training Course. You can also read the following Selenium Tutorial. Here is a Selenium video tutorial which you can refer to learn more about Selenium. .