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

190
Views
Cómo invocar el texto de un div correctamente en cypress

Tengo problemas con la invocación ('texto') de este div y no sé por qué:

 <div class="MuiDataGrid-cell MuiDataGrid-cell--textLeft" role="cell" data-field="description" data-colindex="2" aria-colindex="3" tabindex="-1" style="min-width: 234px; max-width: 234px; min-height: 36px; max-height: 36px; line-height: 35px;">TEXT</div>

Mi código es este:

 cy.get('[data-rowindex="0"]').find('[data-field="description"]').invoke('text').then(text => { cy.get('.css-1e8jzdq').eq(1).find('input').type(text) })

Lo que quiero es que tome el texto del div y lo use para escribir en una entrada de búsqueda, pero no funciona porque cy.type() cannot accept an empty string. You need to actually type something.

No se que me estoy perdiendo con esta invocacion... alguna ayuda?

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!