Skip to content

modifying gui click captcha #3811

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions seleniumbase/core/browser_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1461,9 +1461,10 @@ def _uc_gui_click_captcha(
sb_config._saved_cf_x_y = (x, y)
if not __is_cdp_swap_needed(driver):
if driver.is_element_present(".footer .clearfix .ray-id"):
driver.uc_open_with_disconnect(
driver.get_current_url(), 3.8
)
# driver.uc_open_with_disconnect(
# driver.get_current_url(), 3.8
# )
driver.disconnect()
else:
driver.disconnect()
with suppress(Exception):
Expand All @@ -1476,7 +1477,7 @@ def _uc_gui_click_captcha(
reconnect_time = constants.UC.RECONNECT_TIME + 0.2
if not x or not y:
reconnect_time = 1 # Make it quick (it already failed)
driver.reconnect(reconnect_time)
driver.reconnect(reconnect_time + 2)
caught = False
if (
driver.is_element_present(".footer .clearfix .ray-id")
Expand Down