下拉选项定位,通用用例,只需要定位到虚拟长列表加上选项名称即可。
//*[@id="XXX"]//div[@class='ant-select-item-option-content' and text()='选项名称']