获取下拉框选中的文本 element = driver.find_element_by_xpath('xxx') select = Select(element) text = select..first_selected_option.text