-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
[🐛 Bug]:probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir (SessionNotCreated) #15340
Comments
@maurod83, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
@maurod83 |
Probably related to the same issue, I am running tests using Selenium Webdriver using EdgeChromiumManager, but the msedgedriver version 133.0.3065.82 fails to create a session on the second time. Works when I use 132.0.2957.171 |
adding the argument "--edge-skip-compat-layer-relaunch" to options seems to work for me. otherwise, the path to the program (or the parent if there's one) that calls the webdriver needs to be in "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store" but this will only happen after the program has been opened at least once. seems like a bug in Edge 133 but at least there's a workaround. cheers |
THANK GOD, you fixed it for me. I had a multiprocess scraper I spent a few hours debugging. Honestly dumb webdriver changes breaking things. Was leveraging the edge browser's autotranslation function using jquery to go from top to bottom of page and then scraping thousands of pages. |
You are my hero |
You are my hero, fix the random f**king bug |
What happened?
I have an application using Selenium to automate Edge browser that throws this error message: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir (SessionNotCreated)
This error happens using a new profile directory too.
When I run this app manually for the first time it throws this exception:
And creates automatically an entry in Windows Registry key "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store".
When I run the application again it works as expected. If I remove this entry, error shows up again.
On the first try (with error) msedge.exe commandline is:
On the second try (without error) msedge.exe commandline is:
This error happens when I run my application for the first time and it happens every time I run it using "Run As Administrator"
If I run it from another process that was called from a browser extension using Native Messaging it happens every time too.
If I call msedgedriver directly using a HTTP Post to start a new session, it executes without any error.
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10 x64 Version 22H2 (build 19045.5487)
Selenium version
4.29.0
What are the browser(s) and version(s) where you see this issue?
Edge 133.0.3065.82
What are the browser driver(s) and version(s) where you see this issue?
Edgedriver 133.0.3065.82
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: