When trying to access a page protected by a cloudflare chalenge, the chalenge always fails when using playwright with the stealth plugin but succeed when using puppeteer with the stealth plugin (tested it multiple times with different IPs and the result is always the same playwright+stealth -> chalenge fails, puppeteer+stealth -> chalenge succeed ).
So it looks like playwright is exposing something that puppeteer doesn't. I checked both fingerprints with https://antoinevastel.com/bots/ but they looks identical so I could not determine why playwright is flaged as a bot by cloudflare while puppeteer isn't. But it looks like the stealth plugin would need additional evasion procedure(s) to work with playwright as intended.
NOTE: I use headless=false mode in both snippets so it is easy to visualy detect if the cloudflare chalenge has passed or not
Versions
puppeteer: ^19.8.3 => 19.8.3
puppeteer-extra: ^3.3.6 => 3.3.6
puppeteer-extra-plugin-stealth: ^2.11.2 => 2.11.2
playwright: ^1.32.1 => 1.32.1
playwright-extra: ^4.3.6 => 4.3.6
chromium version used by puppeteer: Version 112.0.5614.0 (Build de développement) (64 bits)
chromium version used by playwright: Version 112.0.5615.29 (Build de développement) (64 bits)
Describe the bug
When trying to access a page protected by a cloudflare chalenge, the chalenge always fails when using playwright with the stealth plugin but succeed when using puppeteer with the stealth plugin (tested it multiple times with different IPs and the result is always the same playwright+stealth -> chalenge fails, puppeteer+stealth -> chalenge succeed ).
So it looks like playwright is exposing something that puppeteer doesn't. I checked both fingerprints with https://antoinevastel.com/bots/ but they looks identical so I could not determine why playwright is flaged as a bot by cloudflare while puppeteer isn't. But it looks like the stealth plugin would need additional evasion procedure(s) to work with playwright as intended.
Code Snippet
puppeteer:
playwright:
NOTE: I use headless=false mode in both snippets so it is easy to visualy detect if the cloudflare chalenge has passed or not
Versions
puppeteer: ^19.8.3 => 19.8.3 puppeteer-extra: ^3.3.6 => 3.3.6 puppeteer-extra-plugin-stealth: ^2.11.2 => 2.11.2 playwright: ^1.32.1 => 1.32.1 playwright-extra: ^4.3.6 => 4.3.6 chromium version used by puppeteer: Version 112.0.5614.0 (Build de développement) (64 bits) chromium version used by playwright: Version 112.0.5615.29 (Build de développement) (64 bits)