cloudflare challenge #3933
-
Hi, I have passed cloudflare challenge using seleniumbase, but somehow from yesterday everything broke down, my code does not work anymore. I share my code, I will be pleased if you help me to get through this problem. I have to mention that I am running this code on Ubuntu server.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I am also facing the same problem and unfortunately the problem was not solved on my system today and I clicked in the wrong place which causes the rest of the steps to fail due to not passing the captcha. |
Beta Was this translation helpful? Give feedback.
-
It looks like you're calling WebDriver methods from CDP Mode, which either doesn't work, or is detectable.
https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/base_case.py#L4786 And 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/48302665896 |
Beta Was this translation helpful? Give feedback.
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 methodadd_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…