-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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]: NoSuchDriverException for Windows app execution aliases #14088
Comments
@vlad8x8, 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! |
We need more information about this issue in order to troubleshoot. Please turn on logging and re-run your code. Information on how to adjust logs for your language can be found in our |
added link to the repo with a project to reproduce the issue |
@titusfortner is there a chance to remove file checks added in
for browser path? What is the reason for those checks? |
We check the validity of the output so that we can provide better error messaging about why things aren't working. I see that Windows aliases do not like this code. The right answer I believe is to also check for |
@titusfortner After exploring this I realized, that this is not a symbolic link, it's an app execution alias. |
the method can be like this:
can I add it to Require.java or there is a better place? |
Wow, that gets ugly. Please PR it to Require so we can check as part of isFile, we can discuss (with the more Java experts on the team) if this is the best way to do it. Thank you! |
This has been fixed in 2a7ddf1 by checking the executable state using the newer |
@joerg1985 your commit doesn't use java.nio.file.LinkOption.NOFOLLOW_LINKS which is critical are you guys pushing to master? omg |
@vlad8x8 i have missed to update the existence check, i did not expect this to fail in this case. Small and limited changes are happening on trunk, bigger / complex in PRs. |
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs. |
What happened?
The default way to run MS Teams desktop client (which is MSEdge-based app) is a Windows app execution aliass located at UserFolder\AppData\Local\Microsoft\WindowsApps\ms-teams.exe)
Selenium Manager is failing on this file.
The issue started on Selenium 4.20 because of https://github.com/SeleniumHQ/selenium/blob/4ecc1033caa9995427c25d36befb70b8faae96d7/java/src/org/openqa/selenium/internal/Require.java
No issue with Selenium 4.19
org.openqa.selenium.internal.Require.FileStateChecker#isFile
throws errors for Windows app execution aliasesHow can we reproduce the issue?
https://github.com/vlad-velichko/selenium-bug-14088
Relevant log output
Workaround
Get the app execution alias link from Windows registry
Operating System
Windows 10
Selenium version
Java 4.21.0
What are the browser(s) and version(s) where you see this issue?
MS Teams based on MS Edge based on Chrome 125
What are the browser driver(s) and version(s) where you see this issue?
msedgedriver 125.0.2535.85
The text was updated successfully, but these errors were encountered: