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

169
Vistas
How do i use this output value as a input

I want to do math.random and put that value in this script

let bday = Math.floor(
  Math.random() * (30 - 1 + 1) + 1
);
await test.page.select('select[name="day_select"]',bday);

but the problem is I need to add '' to bday, cuz if I do

await test.page.select('select[name="day_select"]','10');

it works, but this

await test.page.select('select[name="day_select"]',bday);

and this

await test.page.select('select[name="day_select"]','bday');

doesn't work

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

await test.page.select('select[name="day_select"]',`${bday}`);

I think this would work in your case.

over 4 years ago · Santiago Trujillo 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