Didn't work:
Nice to meet you. Please be aware that I am not an expert.
I am facing the exact same issue. I am using Python 3.9.6, Selenium 4.17.2, and webdriver-manager 4.0.2.
In conclusion, I believe this problem is part of Google's security enhancements and is unlikely to be resolved.
My reasoning for this is as follows:
(1) The release notes for Chrome 136 mentioned security improvements to prevent account hijacking.
・Please forgive me for not providing a source, as I have forgotten where I saw this.
(2) The "DevToolsActivePort" file appears to be deleted by ChromeDriver.
・On a PC where automation tools have never been used, the "DevToolsActivePort" file does not exist under the "User Data" folder.
・On a PC where automation tools were used in the past but not recently, the "DevToolsActivePort" file existed directly under the "User Data" folder.
・On a PC where automation tools were running until recently, the "DevToolsActivePort" file existed directly under the "User Data" > "Default" folder.
・Based on the above three points, I thought that moving the "DevToolsActivePort" file directly under the "User Data" folder might solve the problem. When I tried this, the "DevToolsActivePort" file was deleted from directly under the "User Data" folder as soon as ChromeDriver started. It's worth noting that other files copied directly under the "User Data" folder are not deleted. Also, if I place the "DevToolsActivePort" file directly under the "User Data" folder and manually launch Chrome, the file is not deleted.
・From the above, I believe that ChromeDriver intentionally deletes the "DevToolsActivePort" file from directly under the "User Data" folder.
Therefore, I think the options are either to switch to another browser like Firefox, or to copy the "default" folder and then figure out how to inherit the cookies.
As I am not an expert, I apologize if I have said anything incorrect.
This issue is causing my work to stagnate, and I'm hoping for a more intelligent solution to emerge.