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

163
Views
Is there a different way to "click" on elements with puppeteer? I am being detected with the normal page.click

I am using the Puppeteer Stealth Plugin and can do all clicks on a website without being detected except one where I put an article into the cart. On this button I am sometimes detected sadly. Its about every second time but I need the bot to always work.

Is there a different way to click on an element then use the page.click operation? I was able to click on the button in selenium undetected-chromedriver (it has issues elsewhere thus I cant use it) but not puppeteer. The click goes through but the arcticle is not in the cart and the site says "your client has been blocked by bot protection".

Thank you for your ideas for different ways to click that are not detectable!

while(true){
      try {
        await page.waitForTimeout(200)
        await page.waitForSelector('.nbb-btn.btn_full.js-pdp-head-add-to-cart:not([disabled])', {timeout: ((Math.floor(Math.random() * 12) + 5) * 200)})
        page.click('.nbb-btn.btn_full.js-pdp-head-add-to-cart:not([disabled])')
        
        break
      }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I recently ran into something similar (although the error message didn't explicitly mention that puppeteer was a detected bot).

I tried adding page.waitForTimeout() calls to try and emulate a more human-like page navigation with no success.

I eventually found this puppeteer package ghost-cursor that simulates human-like mouse movements.

I just followed the readme instructions to create a cursor for the page and then used await cursor.click(#signUp-button) (or whatever element you want to click).

about 4 years ago · Juan Pablo Isaza 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!