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

209
Views
No puedo encontrar un elemento por nombre de clase en Cypress

Necesito presionar el botón "Play"

HTML

Mi código: cy.get('.button.button__slider-play.button__rounded-xl').should('be.visible').click();

Pero tengo respuesta: se agotó el tiempo de reintento después de 4000 ms: se esperaba encontrar el elemento: button.button.button__slider-play.button__rounded-xl, pero nunca lo encontré.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Asumiendo que no hay iframe o shadow DOM, puedes hacer esto:

 cy.get('button[class*="slider-play"]).should('be.visible').click();

En caso de que el clic no funcione, puede usar click({force: true})

 cy.get('button[class*="slider-play"]).should('be.visible').click({force: true});
about 4 years ago · Santiago Gelvez 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!