-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for uc_gui_handle_cf()
with Driver()
and DriverContext()
formats
#2879
Comments
Hey, so that's the error I was facing the other day in my last comment . I could have been more meaningful. Anyway thanks for fixing it. |
This was resolved in |
In Mac uc_gui_handle_cf not working, i'm getting a captcha for GitLab login even nothing has changed.
|
Working for me: from seleniumbase import Driver
with Driver(uc=True) as driver:
url = "https://gitlab.com/users/sign_in"
driver.uc_open_with_reconnect(url, 4)
driver.uc_gui_handle_cf() # Not always needed
driver.assert_text("Username", '[for="user_login"]', timeout=3)
driver.assert_element('label[for="user_login"]')
driver.highlight('button:contains("Sign in")')
driver.highlight('h1:contains("GitLab.com")') |
@mdmintz As per screenshots The Python app always jumps but does not start. I don't know why I need to give permission for the external library that is already installed while it was added uc_gui_handle_cf into the code? I have not changed anything, including the fingerprint, VPN, or proxy, yet I still get this captcha. It should work as expected. |
For On macOS / Windows, the CAPTCHA should be bypassed automatically without needing to click it (unless they already flagged your IP Address, in which case nothing can be done). For slow internet connections, you may need to increase the number in |
I have tried with proxy and VPN also even though it gives me a captcha as per the screenshot. let me resolve the permission things first, if you have any solution even getting this error please let me know what should I check. |
Add support for
uc_gui_handle_cf()
withDriver()
andDriverContext()
formatsCurrently, if running this code:
That leads to this stack trace:
Here's the workaround for now using
SB()
: (Which includes the virtual display needed on Linux)Once this ticket is resolved, Linux users who use
Driver()
orDriverContext
formats in UC Mode will still need to setpyautogui._pyautogui_x11._display
toXlib.display.Display(os.environ['DISPLAY'])
on Linux in order to sync uppyautogui
with theX11
virtual display after callingsbvirtualdisplay.Display(visible=True, size=(1366, 768), backend="xvfb", use_xauth=True).start()
. (ForXlib
, useimport Xlib.display
afterpip install python-xlib
.)The text was updated successfully, but these errors were encountered: