-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
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)?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments 1 reply
-
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)
Beta Was this translation helpful? Give feedback.
All reactions
-
This worked for me:
sb.cdp.maximize()
sb.cdp.gui_click_element("#turnstile-widget div")
Beta Was this translation helpful? Give feedback.
All reactions
-
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"
:
Maximizing the window and using sb.cdp.gui_click_element(selector)
works too.
Beta Was this translation helpful? Give feedback.
All reactions
-
right now I'm working on ubuntu laptop. Goal is to run this script with xvfb=True, xvfb_metrics="1920,1080"
Beta Was this translation helpful? Give feedback.