driver.find_element_by_class_name("list")
will always select the first list of drop-down options
You need to use test
as context node:
fields= driver.find_elements_by_class_name("masked-select-inner")
for test in fields:
test.click()
test.find_element_by_class_name("list").find_elements_by_tag_name("li")[1].click()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…