jeudi 15 octobre 2020

Fetching array of buttons based on its text in cypress

The page I am trying to test has multiple buttons with text Order on it. I am trying to fetch all these buttons and loop though them.

I can't use cy.get('button).contains('Order') as it will only return the first button. Is there a way to do this?

Any help appreciated.

Aucun commentaire:

Enregistrer un commentaire