skip to Main Content

Javascript – Conditional testing in cypress between 2 selector

//1st Selector cy.get('div.d-flex.justify-content-between.undefined > button.button.button-filled').contains('Yes, delete user'); //2nd selector cy.get('div.modal.fade.show > div > div > div > div:nth-child(3) > button.button.button-filled').contains('Delete User'); So i got 2 selector, can you help me to make if/else condition, if the 1st condition not working…

VIEW QUESTION
Back To Top
Search