Question: how to get the selected value of dropdown in selenium webdriver javascript?
Answer: You should be able to get the text using getText() if you have an option element, you can get that using getFirstSelectedOption()); Select select = new Select(driver. findElement(By. xpath("//select"))); WebElement option = select.