seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
5k stars 942 forks source link

Unable to Click Turnstile Using `uc_gui_click_cf` on Specific URL #2972

Closed TisuHitam closed 1 month ago

TisuHitam commented 1 month ago

Hello,

I am facing an issue with SeleniumBase where I am unable to click a turnstile using the uc_gui_click_cf method on the following URL: https://gateway.platoboost.com/a/2569?id=82829192.

mdmintz commented 1 month ago

Make sure you're using seleniumbase 4.29.3 (or newer if available).

from seleniumbase import SB

with SB(uc=True) as sb:
    url = "https://gateway.platoboost.com/a/1?id=1"
    sb.uc_open_with_reconnect(url, 4)
    sb.uc_gui_click_captcha()

See the UC Mode documentation: SeleniumBase/help_docs/uc_mode.md

TisuHitam commented 1 month ago

Yes I have updated SeleniumBase to version 4.29.3, but uc_gui_click_cf only works in Cloudflare Challenge not in normal turnstile

https://gateway.platoboost.com/a/2569?id=82829192 Screenshot_20240728-133455

mdmintz commented 1 month ago

On that page, use sb.uc_gui_click_captcha("#captchaContainer").