from selenium import webdriver
from selenium.webdriver.support.select import Select
import time
driver = webdriver.Chrome()
driver.get('http://ui.imdsx.cn/html/')
driver.maximize_window()
js = 'window.scrollTo(0,1800);'
driver.execute_script(js)
element=driver.find_element_by_xpath('//select[1]')
# 通过下标进行查找
Select(element).select_by_index(0)
# 通过value 值进行查找
Select(element).select_by_value('4')