I want to select a value from the dropdown menu and I am also able to select a value but it will select another value, not which that I have given.
Please see the below video. when I click on the dropdown one class appears in the background. and using that class I have created XPath but it will select a different value.
https://www.loom.com/share/e60dd141c3da426080646ec527cc029f
I have used this XPath for clicking on the dropdown and selecting values from it.
self.driver.find_element_by_xpath('//*[@id="shipping_address"]//*[@class="Select-arrow"]').click()
time.sleep(2)
self.driver.find_element_by_xpath('//*[@class="Select-menu-outer"]//*[text()="Alaska"]').click()
I have many tried but not successes can anyone can help me?