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

112
Vistas
Locust io and javascript

I need help with the following, I am trying to get a get from a page (it brings a client information), but said page has a javascript that is executed to monitor, the idea is that when I do the get I also execute said script.

I have looked for some solutions but none is what I need. Is there a way to execute the javascript that is on the web when making the request?

thanks for te help.

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

0

Locust does not run javascript, it is not a real browser.

The best way to work around this is by reimplementing any client-side logic you need in Python (in your locust file).

If your javascript is very complex, you could try remote-controlling an actual browser using WebDriver. It is prohibitively resource-intensive on the load gen side and quite unstable (like WebDriver always is), but for low-load scenarios it can be done.

https://github.com/SvenskaSpel/locust-plugins/blob/master/examples/webdriver_ex.py

But the first option is the best in 99% of cases.

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