mardi 11 septembre 2018

Cypress filter selected ellements by severar included text

I have a select query of several lines something like this:

cy.get('#test-container').find('.row')

I want to find one, that contains some text (for example 'test title' and 'test value') in different subellements together. Or at least test that this row exist. Something like this:

cy.get('#test-container').find('.row').filter('include.text', 'test title').filter('include.text', 'test value')

Aucun commentaire:

Enregistrer un commentaire