Skip to content
Discussion options

You must be logged in to vote

Looks like you're using a really old version of SeleniumBase. Latest is 4.53.5.

Also, you're using UC Mode without CDP Mode. For top stealth, activate CDP Mode from UC Mode by calling sb.activate_cdp_mode(), or it's also automatic if you just call sb.goto(url) from UC Mode.

The new CAPTCHA-clicking method is sb.solve_captcha(). It uses CDP instead of PyAutoGUI.

Here's the updated file:

from seleniumbase import SB

with SB(uc=True, headless=True) as sb:
    sb.activate_cdp_mode()
    sb.goto("https://core.particle.network/cloudflare.html")
    sb.sleep(1)
    sb.solve_captcha()
    sb.sleep(2)
    sb.save_screenshot("page_after_click.png")
    html_content = sb.get_page_source()
    print(h…

Replies: 1 comment

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
2 participants