You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm experiencing an issue when using SeleniumBase at scale.
The process works fine most of the time, but occasionally the page freezes (as shown in the attached image, with browser error code 15), and SeleniumBase also hangs without completing the execution. This prevents the script from finishing properly and requires manual intervention, disrupting the automation flow.
Here is a code snippet where the problem may occur:
with SB(uc=True, headless2=False, browser="chrome", chromium_arg=args, driver_version=chrome_v) as sb:
sb.activate_cdp_mode("https://cav.receita.fazenda.gov.br/autenticacao/login")
sb.cdp.mouse_click(selector='#login-dados-certificado')
try:
sb.cdp.wait_for_element_visible(selector="//button[contains(@value,'login-certificate')]", timeout=10)
sb.cdp.click(selector="//button[contains(@value,'login-certificate')]")
except:
if "Prezado usuário, o seu acesso foi bloqueado por possuir atributos que o caracteriza como um acesso automatizado. Favor tentar nova" in sb.cdp.get_page_source():
raise CaptchaException("Execution flagged as automated access")
Do you have any suggestions on how to handle this freeze so the script can detect the failure and exit gracefully?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm experiencing an issue when using SeleniumBase at scale.
The process works fine most of the time, but occasionally the page freezes (as shown in the attached image, with browser error code 15), and SeleniumBase also hangs without completing the execution. This prevents the script from finishing properly and requires manual intervention, disrupting the automation flow.
Here is a code snippet where the problem may occur:
Do you have any suggestions on how to handle this freeze so the script can detect the failure and exit gracefully?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions