我試圖從表上的某一行斷言一個值。我試圖斷言 的值的行將始終具有相同的描述,但該行在表格中的位置可能會根據加載的檔案來創建表格而發生變化。
我的問題是,我如何能夠斷言描述所在行中的值Parts Inventory這是我試圖斷言的表上行的 html

uj5u.com熱心網友回復:
此解決方案應該有效:
cy.contains('01 - Parts inventory').parent().next().children()
.should('have.text','2899869.56')
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/363663.html
標籤:javascript 柏 质量保证
