Question: how to select a particular value from dropdown in selenium webdriver?
Answer: selectByValue(): You can select an option by using Value attribute provided for each option in dropdown menu. So you can use this Value to select any particular option: WebElement element = driver. findElement(By.id("year")); Select select = new Select(element); select.