#函数
from selenium.webdriver.support.select import Select
#示例
a = driver.find_element_by_xpath("//select[@id='plan_zb_way']")
Select(a).select_by_value('auction')
#函数
from selenium.webdriver.support.select import Select
#示例
a = driver.find_element_by_xpath("//select[@id='plan_zb_way']")
Select(a).select_by_value('auction')
转载于:https://www.cnblogs.com/linguowei/p/7347049.html