Skip to content

[🐛 Bug]: DevToolsActivePort file doesn't exist - Chrome 136 #15688

Closed
@andy14bray

Description

@andy14bray

Description

My code which has been working without issues before is now failing. I believe this is due to the Chrome upgrade to 136. If I don't include the --user-data-dir argument it works fine without issues, however I need this to be included for my process. I can see that it is recognising the user profile, but it is crashing shortly after

Reproducible Code

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_user_data_path = r'C:\Users\xxxx\AppData\Local\Google\Chrome\User Data'

chrome_options = Options()
chrome_options.add_argument(f"--user-data-dir={chrome_user_data_path}")
chrome_options.add_argument("--profile-directory=Profile 1")
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
# chrome_options.add_argument("--headless")
driver = webdriver.Chrome(options=chrome_options)

Debugging Logs

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: DevToolsActivePort file doesn't exist
Stacktrace:
	GetHandleVerifier [0x00007FF7BFA1A145+76773]
	GetHandleVerifier [0x00007FF7BFA1A1A0+76864]
	(No symbol) [0x00007FF7BF7D8F7A]
	(No symbol) [0x00007FF7BF81BA89]
	(No symbol) [0x00007FF7BF8167D9]
	(No symbol) [0x00007FF7BF811B5D]
	(No symbol) [0x00007FF7BF865155]
	(No symbol) [0x00007FF7BF864710]
	(No symbol) [0x00007FF7BF857133]
	(No symbol) [0x00007FF7BF8204D1]
	(No symbol) [0x00007FF7BF821263]
	GetHandleVerifier [0x00007FF7BFCDA8ED+2962317]
	GetHandleVerifier [0x00007FF7BFCD4EC2+2939234]
	GetHandleVerifier [0x00007FF7BFCF2FF3+3062419]
	GetHandleVerifier [0x00007FF7BFA34B9A+185914]
	GetHandleVerifier [0x00007FF7BFA3C78F+217647]
	GetHandleVerifier [0x00007FF7BFA22A44+111844]
	GetHandleVerifier [0x00007FF7BFA22BF2+112274]
	GetHandleVerifier [0x00007FF7BFA08A79+5401]
	BaseThreadInitThunk [0x00007FFE49E97374+20]
	RtlUserThreadStart [0x00007FFE4AE9CC91+33]

ℹ️ Last known working version: 4.31

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!C-pyPython BindingsD-chromeI-defectSomething is not working as intendedI-regressionSomething was working but we "fixed" itOS-windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions