-
-
Notifications
You must be signed in to change notification settings - Fork 292
Description
Checklist before reporting
- I have searched for similar issues and didn't find a duplicate.
- I have updated to the latest version of pydoll to verify the issue still exists.
pydoll Version
2.8.1
Python Version
3.13.7
Operating System
Windows
Bug Description
I'm unsure whether this issue is a result of using Brave (a Chromium-based browser) or if it also occurs using a standard Chrome installation.
When navigating to the site https://jackbit.co/, the user will consistently encounter a CloudFlare Turnstile Captcha on their first page load of the session. PyDoll will sometimes successfully bypass this Captcha, while other times it will indefinitely hang as if it cannot find the Captcha.
Steps to Reproduce
- Import the library using
import pydoll
- Construct a
Chrome()
instance with thebinary_location
option set to the Brave browser path start()
the browser andset_window_maximized()
enable_auto_solve_cloudflare_captcha()
in the tab- Navigate to https://jackbit.co/en
Observe page will often hang, awaiting verification.
Code Example
from pydoll.browser import Chrome
from pydoll.browser.options import ChromiumOptions
from pydoll.browser.tab import Tab
async def main():
options: ChromiumOptions = ChromiumOptions()
options.binary_location = env.str("local/path/to/brave.exe")
browser: Chrome = Chrome(options)
async with browser:
tab: Tab = await browser.start()
await browser.set_window_maximized()
await tab.enable_auto_solve_cloudflare_captcha()
await self.tab.go_to("https://jackbit.co/en")
Expected Behavior
PyDoll should bypass the CloudFlare Captcha and continue to the desired page.
Actual Behavior
The PyDoll-driven browser window stays on the CloudFlare Captcha page until the user manually interacts (non-headless) with the window to bypass it.
Relevant Log Output
Additional Context
In my limited time with PyDoll, all other usage of Brave has worked as expected. So, I'm inclined to believe this is not a browser-specific issue.