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 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.
Replies: 1 comment 1 reply
-
It's already set by default when not using UC Mode: You can add in custom Chromium args via |
Beta Was this translation helpful? Give feedback.
It's already set by default when not using UC Mode:
SeleniumBase/seleniumbase/core/browser_launcher.py
Line 2395 in 990701d
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.