Skip to content
Advertisement

Python and Selenium – Pick value from dropdown list

Trying to pick value in the dropwdown list as shown in picture – Dresses

Dropdown IMAGE with open HTML Dropdown IMAGE with open HTML

By this line i’m able to click and expand the dropdown

JavaScript

After i expand the dropdown list i tried to pick xPath/CSS selector for Dresses but nothing works

How i copy the Selector How i copy the Selector

Advertisement

Answer

Induce WebDriverWait() and element_to_be_clickable() and click on first dropdown div tag to expand and the click on the dropdown item.Hope this will work.

JavaScript

Update

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement