Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

uc_gui_click_captcha moving cursor almost on cf turnstile #3730

Valleymu started this conversation in General
Discussion options

Hi,

is it just issue of my linux setup or do you also have problem of cursor moving nearly on the cf turnstile (but not on clickable area)?

image

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

same issue running example:

with SB(uc=True, test=True, locale="en", guest=True) as sb:
url = "https://www.cloudflare.com/login"
sb.activate_cdp_mode(url)
sb.sleep(3)
sb.uc_gui_click_captcha() # PyAutoGUI click. (Linux needs it)
sb.sleep(2)

You must be logged in to vote
0 replies
Comment options

This worked for me:

 sb.cdp.maximize()
 sb.cdp.gui_click_element("#turnstile-widget div")
You must be logged in to vote
0 replies
Comment options

For GUI-less Linux machines, you may need to configure your Xvfb metrics.

There's an arg for that: xvfb_metrics, which can be set with "width,height":

xvfb_metrics (w,h): Set Xvfb display size on Linux: "Width,Height".

Maximizing the window and using sb.cdp.gui_click_element(selector) works too.

You must be logged in to vote
1 reply
Comment options

right now I'm working on ubuntu laptop. Goal is to run this script with xvfb=True, xvfb_metrics="1920,1080"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /