Question: how to select a value from dropdown in selenium using javascript?
Answer: Import the "Select" package.
Declare the drop-down element as an instance of the Select class. In the example below, we named this instance as "drpCountry".
We can now start controlling "drpCountry" by using any of the available Select methods. The sample code below will select the option "ANTARCTICA."