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

139
Views
my puppeteer runs perfectly, but this await page.click(final) is driving me crazy

I can't understand where I went wrong, since the class normally returns the id, but the await page.click(final) is not executed, I've been racking my brains for a long time, if anyone can understand the error and could help me I would be grateful.

var str = await page.evaluate(({mudas}) => {     
      return document.querySelectorAll('[class="container-2sjPya"]')[mudas].id;
    },{mudas});
    
    //if(maior>250){
      var final = "\'\[id\=\""+str+"\"\]\'";
      console.log(name);
      console.log(maior);
      console.log(posi);
      console.log(final);
      await page.waitForSelector(final);
      await page.click(final); 
      await page.waitFor(800); 
      await page.click('[aria-label="Adicionar reação"]');
      await page.waitFor(800);
      await page.keyboard.press('Enter');
      await page.waitFor(1000);
    /*}else{
      console.log("nenhuma waifu acima de 250 kakera")
    }
about 4 years ago · Juan Pablo Isaza
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!