求助

forever
forever
订阅者
445
文章
0
粉丝
测试交流1 185字数 18阅读0分3秒阅读模式
let  = 0
cy.get(selector).then( => {
cy.wrap().each(($item) => {
--snip--
 += 1
})
})
cy.wrap().should('have.length', )

.

 文章源自玩技e族-https://www.playezu.com/207747.html 文章源自玩技e族-https://www.playezu.com/207747.html

 
    • Alapan Das
      Alapan Das 9

      cy.get(selector).should(‘have.length’, 6)

      let counter = 0

      cy.get(selector)
      .each(($item) => {
      //–snip–
      counter += 1
      })
      .then(() => {
      cy.get(selector).should(‘have.length’, counter)
      })

    匿名

    发表评论

    匿名网友
    :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
    确定

    拖动滑块以完成验证