-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Closed
Labels
C-javaJava BindingsJava BindingsI-defectSomething is not working as intendedSomething is not working as intended
Description
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 aliases
How can we reproduce the issue?
https://github.com/vlad-velichko/selenium-bug-14088
Relevant log output
org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: msedgedriver, error MicrosoftEdge must exist: C:\Users\me\AppData\Local\Microsoft\WindowsApps\ms-teams.exe
For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location/
Build info: version: '4.21.0', revision: '79ed462ef4'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '21-ea'
Driver info: driver.version: SelenideDriver
at org.openqa.selenium.remote.service.DriverFinder.getBinaryPaths(DriverFinder.java:121)
at org.openqa.selenium.remote.service.DriverFinder.getDriverPath(DriverFinder.java:55)
at org.openqa.selenium.edge.EdgeDriver.generateExecutor(EdgeDriver.java:71)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:60)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:56)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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-javaJava BindingsJava BindingsI-defectSomething is not working as intendedSomething is not working as intended