I'm new to selenium, and need some help with selecting a an item from drop down. This is after research, but didn't seem to find anything.
<div class="Select-value">
<span
class="Select-value-label" role="option"
aria-selected="true" id="react-select-5--
value-item">Female</span></div>
In the code above, the value of 'Female' can be changed by 'Male' or 'Unspecified' via drop down menu.
I can get the tag with
gender = browser.find_element_by_xpath('//*[@id="react-select-5--value"]/div[1]')
,
but how do I change the value?