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
5.3k stars 973 forks source link

Detect the Windows scaling factor for UC Mode PyAutoGUI clicks #2998

Closed mdmintz closed 2 months ago

mdmintz commented 2 months ago

Detect the Windows scaling factor for UC Mode PyAutoGUI clicks

Currently, the UC Mode docs tells people to set the scaling factor to 100%. (It's better to auto-detect the scaling factor. I see how to do that now.)

Once complete, this section can be removed:


🛠️ Troubleshooting UC Mode

On Windows, the uc_gui_click_captcha() method requires "Scaling" to be set at "100%". (Note that "100%" may be different from the system's "Recommended" percent, which can be higher depending on your screen resolution and monitor size.)

As an alternative to using the uc_gui_click_captcha() method on Windows, you can use sb.uc_gui_handle_captcha(), which does not require "Scaling" to be set to a specific value. Instead of using the mouse to click a CAPTCHA, sb.uc_gui_handle_captcha() uses a combination of the TAB key and the SPACEBAR.


mdmintz commented 2 months ago

This was resolved in 4.29.7 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.29.7

mdmintz commented 2 months ago

Due to a bug, (#3007), this issue was actually resolved in 4.29.8 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.29.8