【发布时间】:2023-01-04 06:45:26
【问题描述】:
测试.js:
cy.get('.ant-input-number-input')
.wait(2000)
.then(($input_field) => {
const count = $input_field.find('.ant-input-number-input').length;
cy.log(count)
})
cy.log:
log 0
我需要计算元素数量。但我收到了“0”。我怎样才能收到元素的数量?
【问题讨论】:
标签: cypress