xpath路径是这样的:/html/body/div[7]/div[1]/div[1]/ul/li[2]/span,主要是因为div中的数字会随页面刷新变动,改成div[last()]即可:/html/body/div[last()]/div[1]/div[1]/ul/li[2]/span
xpath=//div[contains(@class,"el-select-dropdown__wrap")][0]/descendant::li/span[text()="图片"]
xpath=//div[contains(@class,"el-select-dropdown__wrap")][1]/descendant::li/span[text()="图片"]
xpath=//div[contains(@class,"el-select-dropdown__wrap")][2]/descendant::li/span[text()="图片"]
这样应该可以,先通过顶层的div找到第几个下拉框