Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

201
Views
Abrir un enlace de un origen diferente no funcionará

Estoy tratando de hacer clic en un enlace a un dominio diferente

Usé cy.origin para hacerlo pero no funciona

se hace clic en el enlace y se abre, pero la ventana parpadea entre las páginas

y un texto enorme que dice:

"ESTÁ VISITANDO ESTA PÁGINA EN UNA VENTANA DE MARCO NO AUTORIZADO"

este es el código utilizado para hacer clic en el enlace

 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 answers
Answer question

0

¿Quizás estás haciendo clic en el enlace demasiado pronto?

 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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!