selenium.common.exceptions.SessionNotCreatedException in headless mode #2483
Labels
duplicate
The answer/solution already exists somewhere
self-resolved
You closed/solved the issue on your own
UC Mode / CDP Mode
Undetected Chromedriver Mode / CDP Mode
It is now solved, very was similar to #2247. It was due to proxy and headless mode. setting
headless2=True
fixed the problem.Hi, I'm getting the following exception when I run the seleniumbase (4.23.2) script (at the bottom) in ubuntu and headless mode. Same script works like a charm at macOS.
I confirmed google-chrome is on my path. When I run the
google-chrome --headless
on terminal, I will get the followinghowever, when run
$ google-chrome --headless --disable-gpu
, error will disappearI couldn't find a way to pass
--disable-gpu
option to SB context manager.Currently I'm on ubuntu 22.04 and
google-chrome-stable (121.0.6167.160-1)
. seleniumbase will install*** chromedriver to download = 121.0.6167.85 (Latest Stable)
in first run.
my selenium script: (in fact, your turnstile example)
UPDATE: Might be related
The text was updated successfully, but these errors were encountered: