Question: how to get text value from dropdown in selenium?
Answer: Select select = new Select(driver. findElement(By. xpath("//select"))); WebElement option = select. getFirstSelectedOption(); String defaultItem = option. getText(); System. out.