uc_gui_click_cf does not click exactly CF checkbox position #3773
Answered by mdmintz
ngocdangrby asked this question in Q&A
-
| Hi, I am trying to run simple script to get traffic information. And I got some problems:
lib version: here is my code: Video: screen-capture.24.webm |
Beta Was this translation helpful? Give feedback.
Answered by mdmintz May 26, 2025
Replies: 1 comment 4 replies
-
| Make sure that the scale-factor is set to 100%, and that fractional scaling is disabled. (You may also need to maximize the window.) For your 2nd issue, PyAutoGUI can only control one mouse at a time, and it can only click on headed browsers. There's also |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Make sure that the scale-factor is set to 100%, and that fractional scaling is disabled. (You may also need to maximize the window.)
For your 2nd issue, PyAutoGUI can only control one mouse at a time, and it can only click on headed browsers.
(Xvfb gets you around that limitation on headless Linux systems.)
There's also
sb.cdp.gui_click_element(selector), which should be used on the element directly above the shadow-root of the Turnstile. Example here: SeleniumBase/examples/cdp_mode/raw_planetmc.py.