How to select a drop-down menu value with Selenium using Python?

前端 未结 13 1901
南方客
南方客 2020-11-22 06:33

I need to select an element from a drop-down menu.

For example:


    
    
    

Python:

fruit_field = browser.find_element_by_xpath("//input[@name='fruits']")
fruit_field.send_keys("Mango")

That's it.

提交回复
热议问题