Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cy.get('#login-username').type('username');
- cy.get('#login-password').type(`password{enter}`);
- // Check for a possible warning dialog and dismiss it
- if (cy.get('.warning')) {
- cy.get('#warn-dialog-submit').click();
- }
- CypressError: Timed out retrying: Expected to find element: '.warning', but never found it.
- cy.get('#login-username').type('username');
- cy.get('#login-password').type(`password{enter}`);
- // Check for a possible warning dialog and dismiss it
- if (Cypress.$('.warning').length > 0) {
- cy.get('#warn-dialog-submit').click();
- }
Add Comment
Please, Sign In to add comment