I have a dropdown who's inspection looks like this:
I want to check all the li
elements and see if one of them contains the text "Other" for example...
So im writing in scala and I did this:
driver.findElement(By.className("dropdown-menu open")).click()
val myDropDown = driver.findElement(By.className("dropdown-menu open")).findElements(By.tagName("li"))
val answer = myDropDown.exists(a => a.getText == "Other")
println(answer.toString())
apparently its not true, what do you think I should do? thanks