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

199
Views
Cypress 'buscar' no está ubicando el elemento en un iframe

Soy muy nuevo en Cypress y no estoy seguro de lo que estoy haciendo mal aquí. Aquí está el código html para el sitio web ver más abajo

y aquí está el código que estoy probando en ciprés

 cy.get('iframe[sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-modals"]') .its('0.contentDocument.body').then(cy.wrap).find('#helpForm').should('be.visible')

pero está fallando y dice que no puede encontrar el elemento, pero si lo intento

 cy.get('iframe[sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-modals"]') .its('0.contentDocument.body').should('be.visible')

es un trabajo totalmente bien. incluso lo intenté

 cy.get('iframe[sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-modals"]') .its('0.contentDocument.body').then(cy.wrap).find('div').should('be.visible')

pero todavía no hay suerte. No tengo idea de lo que estoy haciendo mal.

about 4 years ago · Juan Pablo Isaza
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!