【发布时间】:2018-11-21 14:39:33
【问题描述】:
我在从赛普拉斯的组合框中选择值时遇到问题。 它总是这样写道:
CypressError: cy.select() can only be called on a <select>. Your subject is a: <span unselectable="on" class="k-select" aria-label="select" role="button" tabindex="-1" aria-controls="fabric_listbox">...</span>
Types text into numeric inputs
我的代码如下所示:
describe('KendoUI', () => {
it('types text into numeric inputs', () => {
cy.visit('https://demos.telerik.com/kendo-ui/combobox/index');
cy.get(':nth-child(4) > .k-dropdown-wrap > .k-select').select('Polyester')
})
})
你能给我一些帮助吗? 你可以在这个页面上试试:https://demos.telerik.com/kendo-ui/combobox/index
谢谢。
【问题讨论】:
标签: testing kendo-ui automation cypress