# 定位到下拉框元素 ele = driver.find_element_by_id("abc") # # 根据下拉框文本选择 # Select(ele).select_by_visible_text("月薪三千") # # 根据下标选择 # Select(ele).select_by_index(0) # 根据 value 属性选择 Select(ele).select_by_value("p3")