如何使用赛普拉斯清除(取消选择)多选输入中的所有选项?
这里的文档似乎没有涵盖这种情况:https ://docs.cypress.io/api/commands/select.html#Syntax
该clear()命令显然不能应用于选择,正如您所期望的
https://docs.cypress.io/api/commands/clear.html#Syntax
我尝试传递一个空字符串/数组/null,select()但出现以下错误:
CypressError: Timed out retrying: cy.select() failed because it could not find a single <option> with value or text matching: ''
cypress ×1