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

239
Views
¿Cómo puedo configurar el elemento de entrada vue.js a través de JS?

Tengo una entrada hecha por los componentes integrados de vue.js. Quiero poder establecer un valor y enviar este valor para poder crear pruebas automatizadas. ¿Cómo puedo lograr esto?

Actualmente así es como configuro el valor, pero al enviar este valor se cambia automáticamente con los datos predeterminados.

 Execute JavaScript return element.value = "${startDate}"
almost 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Simplemente ejecute el método dispatchEvent en el propio componente. Esto permitirá que Vue establezca el valor que ingresó en los datos del formulario

 Execute JavaScript return element.dispatchEvent(new Event('input'));
almost 4 years ago · Santiago Trujillo Report

0

¡Crear un nuevo dispatchHandler solucionó mi problema!

 Execute JavaScript return element.value = "${startDate}"
Execute JavaScript return element.dispatchEvent(new Event('input'));
almost 4 years ago · Santiago Trujillo 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!