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

166
Views
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 answers
Answer question

0

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

I think this would work in your case.

over 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!