Closed shashank-mhegde closed 2 years ago
Getting error cy.currentSubject is not a function Cypress Version: 9.6.0
cy.get('div[role="dialog"]') .if('visible') .then(() => { cy.log('closing the dialog'); cy.contains('button', 'Close').click(); }) .else() .then(() => { cy.log('Already closed'); });
Getting error cy.currentSubject is not a function Cypress Version: 9.6.0