Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道有一个 selenium API (isSomethingSelected) 用于查看是否在单选下拉列表中选择了一个值。多选是否有等价物?
您是否尝试过 storeSelectedIndexes()、storeSelectedLabels() 或 storeSelectedValues()?
据我所见,没有办法直接检查多选元素的选择,但有人可能已经写了一个扩展。