Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
Cypress: How to do a cy.type without a click

I'm curious as to why cypress seems to be triggering a click at the beginning of the .type() command. Here's the whole command I'm trying to run:

cy.contains(".rt-tr", "Taoh").type("{downarrow}");

Unfortunately as you can see in the picture below, this type action seems to trigger a click: debugger stack of click event being fired when the cy.type command is run

I can potentially understand why that might make sense in order to bring that element into focus, but what about if that element IS already focused.

I tried doing

cy.contains(".rt-tr", "Taoh").click().type("{downarrow}");

And it seems to trigger 2 click events. This is confusing to me. Any way to avoid that click would be appreciated. Thanks!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Op was able to solve it by adding .focus

cy.contains(".rt-tr", "Taoh").focus().type("{downarrow}")
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda