-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[🐛 Bug]: options --user-data-dir & --profile-directory return: DevToolsActivePort file doesn't exist #15729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@BrBriz, thank you for creating this issue. We will troubleshoot it as soon as we can. Selenium Triage Team: remember to follow the Triage Guide |
This works fine for me on Linux with Chrome 136. Can you verify you have the directory names correct and they actually exist?
This is really confusing. I suggest you remove the double-backslashes and use of raw string, and just use single forward slashes when dealing with Windows paths. On my machine, there is no Also, try using the full path when specifying I don't think there is anything Selenium can fix here. |
r'C:\Users\bletb\AppData\Local\Google\Chrome\User Data' did not help (this path exists); |
Is there a file named |
Hi, @BrBriz. You can see if the feature is passing in the Web Platform Tests. If it is something new, please create an issue with the ChromeDriver team. |
For those who see this. At the moment the fix is this: download ChromeTest and ChromeDriver of the same version (currently 136.0.7103.92). Then use my code and replace the values with yours:
|
This shouldn't require manually downloading chrome/chromedriver and I don't see how your code is at all helpful. |
ChromeDriver 136.0.7103.92 does not work on Windows with Chrome 136.0.7103.93 with --user-data-dir & --profile-directory. This is a manual fix for the bug. I had a person on Discord who had the same problem. My manual solution helped her. This is not an automatic fix, it is just a workaround for the restrictions that Google has put in place (https://developer.chrome.com/blog/remote-debugging-port) |
Selenium should be downloading the correct things automatically. If it isn't then we need to figure out why. Hard coding a specific version isn't the right long-term fix. |
Titusfortner, I completely agree, but neither you nor I know if Chrome will want to fix this. ChromeTest is just a temporary analogue. I don't want to force anyone to add this code, I just found the reason and told how to avoid it. I don't see the point in arguing on this topic because it's neither your side nor my side of the error. |
No, I mean that I think Selenium might currently allow slightly different patch versions of Chrome for Testing and Chromedriver, in which case I think that's a bug and this is a good reason to check to make sure we don't allow that. If Selenium is using CfT it should always exactly match driver version, so I want to know if it isn't doing that. |
@BrBriz this is the issue tracker for Selenium development. We are looking to diagnose issues and fix them. If there is a real issue here, it is helpful to know. I took issue with your wording "the fix is this" ... when what you presented is not at all a fix and shouldn't be necessary. |
Description
Good afternoon! I encountered a problem (after May 2) that when using --user-data-dir & --profile-directory I started getting the error:
"DevToolsActivePort file doesn't exist"
. Since I noticed thatChrome version is 136.0.7103.93
, andChromeDriver version is 136.0.7103.92
, I tried using ChromeBeta where both versions were the same (ChromeBeta & ChromeBetaDriver), but it didn't work, just the same error. I tried using:--no-sandbox
;--disable-dev-shm-usage
;--headless
;--remote-debugging-pipe
;--remote-debugging-port=9222
, but it didn't work, only by removing--user-data-dir
and--profile-directory
the program worked.I would be very happy if this problem would be considered and resolved.
selenium_log.txt
selenium_log_with_options.txt
Reproducible Code
Debugging Logs
ℹ️ Last known working version:
4.30
The text was updated successfully, but these errors were encountered: