Cypress 如何从只读输入字段中选择项目
如何从输入中选择下拉列表:Cypress 如何从只读输入字段中选择项目,cypress,Cypress,如何从输入中选择下拉列表: CypressError: cy.select() can only be called on a <select>. Your subject is a: <input type="text" readonly="readonly" autocomplete="off" placeholder="Select a ID" name="Id" class="el-input__inner"> cy.get('input[name="Id"]
CypressError: cy.select() can only be called on a <select>. Your subject is a: <input type="text" readonly="readonly" autocomplete="off" placeholder="Select a ID" name="Id" class="el-input__inner">
cy.get('input[name="Id"]').select("ccc");
cy.get('input[name="Id"]').select("ccc", { force: true });