Skip to content

cloudflare challenge #3933

Answered by mdmintz
naweed1992 asked this question in Q&A
Aug 18, 2025 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

It looks like you're calling WebDriver methods from CDP Mode, which either doesn't work, or is detectable.

sb.add_cookies(cookies) calls the WebDriver method add_cookie on the backend:

https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/base_case.py#L4786

And sb.driver.execute_cdp_cmd is a WebDriver method.

There are CDP Methods for cookies. Here's an example that uses that: examples/cdp_mode/raw_cookies_async.py.

CDP Mode methods are listed at the bottom of SeleniumBase/examples/cdp_mode/ReadMe.md.


As for running in Ubuntu, there have been no issues bypassing Cloudflare Turnstiles.

https://github.com/mdmintz/undetected-testing/actions/runs/17040447895/job/4830…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@naweed1992
Comment options

@HELA-HELA
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants