71
rated 0 times
[
74]
[
3]
/ answers: 1 / hits: 33874
/ 5 Years ago, thu, september 5, 2019, 12:00:00
I am trying to select two buttons one after one , a Delete button and after that the Yes popup confirmation ,by this:
cy.get('.btn-danger').last().click();
cy.get('.btn-primary').click();
But i got this error:
CypressError: cy.click() can only be called on a single element.
Your subject contained 2 elements.
Pass { multiple: true } if you want to serially click each element.
More From » cypress