无法通过cypress识别表中的元素

校服杀人魔
校服杀人魔
订阅者
277
文章
0
粉丝
测试交流评论166字数 120阅读0分24秒阅读模式
摘要1.cy.get('.p-datatable-table')。包含('td',text)。应('be.visible'); 2.cy.contains('td',text).get...
  1.cy.get('.p-datatable-table').contains('td',text).should('be.visible');
  2.cy.contains('td',text).get('.svg-inline--fa.fa-edit.fa-w-18').last().click({force: true})

在第一点中,我尝试在表上断言这个特定元素是否存在于特定列中。
在第二点中,如果找到元素,请单击该元素对应的编辑按钮。

但我面临的问题是,cypress没有识别元素,它说这个元素不存在,但实际上它存在于表中。文章源自玩技e族-https://www.playezu.com/190019.html

软件测试 功能测试报告文章源自玩技e族-https://www.playezu.com/190019.html 文章源自玩技e族-https://www.playezu.com/190019.html

 
匿名

发表评论

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

拖动滑块以完成验证