lundi 4 février 2019

Get first element that does not contain value in an array in cypress

I have a list of cards and I need to programmatically select the first in the list that does not contain one of five values that I have in an array. I have tried this:

cy.get('.parent-element').not().contains('string1', 'string2', 'etc')

and this:

cy.get('.parent-element').not('string1', 'string2', 'etc')

hmmm. any thoughts on this. any child element of .parent-element is fair game except for these few exceptions.

Aucun commentaire:

Enregistrer un commentaire