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

159
Views
Cypress: haga clic con fuerza: true mueve hitbox a otro lugar

He estado tratando de hacer clic en un elemento con esto:

 cy.getByDataCy(ELEMENT).scrollIntoView().click({scrollBehavior: false, position: 'top'});

Cuando reviso el tablero de Cypress, el hitbox parece intentar hacer clic en el elemento correcto, como se muestra aquí

Ahora, por alguna razón, no hace clic, así que intento agregar

 force: true

Cuando ejecuto esto, el hitbox ahora intenta hacer clic en el área abierta debajo del botón, como se muestra aquí

Intenté usar las diferentes posiciones para hacer clic y desplazarse, así como otras configuraciones como scrollBehavior, waitForAnimations, etc. ¿Alguien puede resolver esto? Ha estado atascado durante alrededor de 4 horas.

¡Gracias!

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!