How does Selenium check selected dropdown value?

How does Selenium check selected dropdown value?

The method getFirstSelectedOption() returns the option that was selected in the dropdown. Once the option has been retrieved, you can use the getText() method to retrieve the text.