I have an issue with navigating in the listbox made of UL list using Selenium 4.3 and Python 3. The problem is that I don't know how to switch value from default to any other and when I'm trying to use click method on those <li>
elements I'm getting only errors.
The screen shot of the html code below:
First I was trying to open whole list by clicking on it and after that choosing the element by the second click. I was trying to access that by ID, like this:
driver.find_element(By.ID, "__list1").click()
But it was an error that the asked element doesn't exist.
Do you have any idea how to navigate to different element from this kind of dropdown list? I know how to deal with this problem if the HTML tag would be a <select>
.