puppeteer-extra icon indicating copy to clipboard operation
puppeteer-extra copied to clipboard

[Bug] Google throwing captcha in headless mode. Same code works in headful.

Open carefulcomputer opened this issue 2 years ago • 0 comments

Describe the bug When I am trying to login using google, exact same code works without any problem in headful mode. However if I change the browser to headless (with exact same code), then google throws captcha.

Versions "puppeteer": "^11.0.0", "puppeteer-extra": "^3.2.3", "puppeteer-extra-plugin-stealth": "^2.9.0"

I tried adding

await page.setBypassCSP(true);

but I still got captcha. Tried changing user agent to Firefox on matching OS but still same issue. BTW, I am not using default tab, but opening new tab.

image

carefulcomputer avatar Nov 12 '21 05:11 carefulcomputer