Control a new tab with Cypress

Asked

Viewed 147 times

0

I’m testing an app with Cypress, and I have a problem.

Gerenciar Clicking the button (Manage) opens a new tab and I would like to know if I can force it to open in it or make cypress use the new tab. Unable to pass url because of token.

it('Nova aba Produto', () => {
    cy.Login();
    cy.get(':nth-child(7) > a > .fa').click();
    cy.get('#drop-user > .fa').click();
    cy.get('.mt-auto').click();// Abre outra guia
  });

1 answer

-2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.