Can this be used with Playwright? #856
Replies: 3 comments 3 replies
-
|
You need to change the Playwright user-agent to match the Flaresolverr user-agent. If its not possible you can use Python. |
Beta Was this translation helpful? Give feedback.
-
|
Were you able to find out the 'path-to-the-devtools-server' to do the cdp connection? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this is technically possible, but the issue you’re hitting is not Playwright vs FlareSolverr integration — it’s session consistency across the full request chain. What’s happening in your flow is usually: FlareSolverr solves the challenge → issues cookies So even though the cookies are valid, the combined identity is not stable. A more reliable pattern is:
If FlareSolverr is used, it should ideally: operate on the same proxy exit IP Playwright CDP ( the session origin (IP + TLS + browser fingerprint) remains identical In practice, people often combine this with residential proxy infrastructure (e.g. Novada-style sticky sessions) so that: CAPTCHA solving and browsing happen on the same IP Without that, Cloudflare tends to treat the cookie reuse as a partial replay attack rather than a continuous human session. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use FlareSolverr with Playwright?
I'm using the REST API get the cookies for a specific website and plugging them, along with the user agent into Playwright via the
context.addCookies()method however, it looks like I'm still getting the Cloudflare Waiting Room forhttps://digital.pnbank.com.au/when trying to open that page. Both requests (FlareSolverr and Playwright) are coming from the same IP.Is this even possible to use this way? If so, does someone have any idea what I'm doing wrong?
Could this project be changed to include the developer tools URL or similar of a session? I think that could be used with Playwright or Puppeteer to remote control the browser that just solved the captcha?
If we could get the CDP URL from webdriver we could then connect in Playwright via:
Beta Was this translation helpful? Give feedback.
All reactions