Get a value from a dropdown menu Selenium Python

Viewed 18

I am trying to get a value from a Dropdown menu on this website "https://member.starbucks.co.nz/en/sign-up" For the Day/Month and a Year. The problem is that the values for the stuff in those dropdown menus are hidden and if you are trying to open the "div" stage appearing when you have the dropdown menu open on your screen it will disappear. I need to integrate this into Selenium for my python project so it clicks on it and chooses a certain day/month and a year.

driver.find_element_by_css_selector("span[id='react-select-3--value'] div[class='Select-placeholder']").click()

This element above clicks to open this dropdown menu and another line suppose to click on the value from this dropdown but I can't make it happen

0 Answers
Related