-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
Hi,
I'm using SeleniumBase with uc=True and activate_cdp_mode()
with SB(
uc=True,
is_mobile=isMobile,
browser="chrome",
extension_dir=extension_path,
user_data_dir=profile_path,
chromium_arg=var_chromium_arg,
settings_file="./MySetting.py",
pls="none",
disable_beforeunload=True,
skip_js_waits=True,
) as sb:
sb.cdp.add_handler(
mycdp.fetch.RequestPaused, self.request_paused_handler
)
Everything works fine but sometimes when I leave the browser running for a long time it gives this error and browser stops
Is there a solution to this problem please?
[DEBUG ] < CLOSE 1000 (OK) [2 bytes]
[DEBUG ] < EOF
[DEBUG ] > EOF
[DEBUG ] = connection is CLOSED
[DEBUG ] x half-closing TCP connection
[DEBUG ] [Connection listener exception while reading websocket]
sent 1000 (OK); then received 1000 (OK)
[DEBUG ]
❌ Closed websocket connection to ws://127.0.0.1:9222/devtools/page/8DCDFE778C19896D8F48E78C53187C64
Beta Was this translation helpful? Give feedback.