Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13891

Choose from dropdown list in Selenium Python

$
0
0

I need to select an option form a dropdown list.I tried many ways to click on the dropdown then select the option I need, the click on the dropdown success but it fails in selecting the choice.

Here are the lines of code:

WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH,'//* [@id="arid_WIN_3_1000000163"]'))).click()driver.find_element(By.CSS_SELECTOR, ".MenuEntryNameHover").click()driver.find_element(by=By.XPATH,value='//*[contains(text(), "4-Minor/Localized")]').click()

This is the screenshotDropdown List Image


Viewing all articles
Browse latest Browse all 13891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>