title: Cypress JS how to catch Pop up form
body: <p>I am trying to use <code>cy.get()</code> to select an element on poped up form which contains Name, Surname etc, but cypress automatically closes it down. I've tried to use window:alert or double click with {force: true}, but it wasn't successful.</p>
  <p>Desired result: I push &quot;Place Order&quot; button and it opens a form with fill fields which i can use further.</p>
  <pre><code>/// &lt;reference types=&quot;cypress&quot; /&gt;
  
  // sometimes cypress cannot execute methods because element is detached from DOM. In this case need to restart test
  describe('Categories test', function () {
    it('Delete cart', function () {
      cy.visit('https://www.demoblaze.com/index.html');
      cy.get('a.list-group-item:nth-child(2)').click();
      cy.get('#tbodyid &gt; :nth-child(1)').contains('$360');
      cy.get(
        ':nth-child(1) &gt; .card &gt; .card-block &gt; .card-title &gt; .hrefch'
      ).click({ force: true });
      cy.get('.col-sm-12 &gt; .btn', { timeout: 30000 }).click();
      cy.go(-2);
      cy.get('a.list-group-item:nth-child(3)', { timeout: 30000 })
        .click()
        .click();
      cy.get(':nth-child(1) &gt; .card &gt; .card-block &gt; .card-title &gt; .hrefch', {
        timeout: 30000,
      })
        .contains('Sony vaio i5')
        .click({ force: true });
      cy.get('.col-sm-12 &gt; .btn', { timeout: 30000 }).click();
      cy.go(-2);
      cy.get('a.list-group-item:nth-child(4)', { timeout: 30000 })
        .click()
        .click();
      cy.get(':nth-child(1) &gt; .card &gt; .card-block &gt; .card-title &gt; .hrefch', {
        timeout: 30000,
      }).click({ force: true });
      cy.get('.col-sm-12 &gt; .btn').click();
      cy.get('#cartur').click();
      cy.get('#tbodyid &gt; :nth-child(1) &gt; :nth-child(4) &gt; a', {
        timeout: 30000,
      }).click({ multiple: true }, { force: true });
      cy.get('#tbodyid &gt; :nth-child(1) &gt; :nth-child(4) &gt; a', {
        timeout: 30000,
      }).click({ multiple: true }, { force: true });
      cy.get('.success &gt; :nth-child(4) &gt; a', { timeout: 30000 }).click(
        { multiple: true },
        { force: true }
      );
      cy.get('.col-lg-1 &gt; .btn').click({ force: true });
      cy.get('#totalm').contains('Total:');
      cy.get('#name').type('Test');
    });
  });
  </code></pre>