selectByValue(): You can select an option in a dropdown menu by using the Value property provided for each option. As a result, you can use this Value to select any of the following options: driver is a WebElement element.