-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Disable GPU with context manager #3660
-
Hello! I'm working on a scraper, but it tends to freeze after a few successful iterations. In the past, when using Selenium directly, I found that adding the --disable-gpu
option helped resolve similar issues. However, it seems that the SeleniumBase context manager doesn’t support disabling the GPU (as the following is being hardcoded).
SeleniumBase/seleniumbase/plugins/sb_manager.py
Line 1068 in 990701d
I was wondering if there is any possible walkaround to this. Any help would be appreciated—thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions
It's already set by default when not using UC Mode:
You can add in custom Chromium args via chromium_arg
, eg. SB(chromium_arg="--disable-gpu")
, although note that UC Mode might not work properly when the GPU is disabled.
Replies: 1 comment 1 reply
-
It's already set by default when not using UC Mode:
You can add in custom Chromium args via chromium_arg
, eg. SB(chromium_arg="--disable-gpu")
, although note that UC Mode might not work properly when the GPU is disabled.
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you!
Beta Was this translation helpful? Give feedback.