public void selectOptionFromDropdownByValue ( final By by , final String value ) { Select select = new Select ( driver . findElement ( by ) ) ; select . selectByValue ( value ) ; }
Select a value from a drop down list based on the actual value NOT DISPLAYED TEXT .