Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

202
Vistas
Open a link of a different origin wont work

I'm trying to click on a link to a different domain

I used cy.origin in order to do so but its not working

the link gets clicked and opens but the window is flickering between the page

and a huge text saying :

"YOU ARE VIEWING THIS PAGE IN AN UNAUTHORIZED FRAME WINDOW"

this is the code used to click the link

   it('iframe',function(){
    cy.get('#ifmail', { timeout: 20000 }).within(function($iFrame){
      const iFrameContent = $iFrame.contents().find('a').eq(0)
      cy.wrap(iFrameContent).invoke('attr', 'target', '_parent').click()
      cy.origin('www.stage-mycwt.com', () => {
        // below is the actual link
        //https://accounts.stage-mycwt.com/ext/pwdreset2/Reset?adapterId=2AdapterMyCwtWebO
        cy.get('#newPassword').type('pass{enter}')
      })
    })

   })
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Maybe you are clicking the link too soon?

cy.origin('www.stage-mycwt.com', () => {
  cy.wrap(iFrameContent).invoke('attr', 'target', '_parent').click()
  cy.get('#newPassword').type('pass{enter}')
  ...
})
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda