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

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

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 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!