I want to get the selected element from the dropdown list with Selenium, but it gets the first unselected value instead of the selected element. How can I fix this?
var val4 = drv.FindElement(By.Id("snf")).Text;