Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Asserting value from certain row on table

I am trying to assert a value from a certain row on a table. The row I am trying to assert the value of will always have the same description, but where the row is on the table might change according to what document gets loaded to create the table from.

My Question is, How am I able to assert the value in the row where the description is Parts Inventory Here is the html to the row on the table I am trying to assert
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This solution should work:

cy.contains('01 - Parts inventory').parent().next().children()
.should('have.text','2899869.56')
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading