selenium: [๐Ÿ› Regression,Edge]: Edge Driver will not start on Linux

What happened?

Selenium Manager / Edge driver download is broken:

java.lang.RuntimeException: 
Unable to instantiate Drone via org.openqa.selenium.edge.EdgeDriver(EdgeDriverService,EdgeOptions): org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: msedgedriver, error Command failed with code: 65, executed: [--browser, MicrosoftEdge, --language-binding, java, --output, json]
Unable to discover MicrosoftEdge in online repository
Build info: version: '4.23.0', revision: '4df0a231af'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '5.15.0-208.159.3.el9uek.aarch64', java.version: '22.0.2'
Driver info: driver.version: EdgeDriver
Caused by: org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: msedgedriver, error Command failed with code: 65, executed: [--browser, MicrosoftEdge, --language-binding, java, --output, json]
Unable to discover MicrosoftEdge in online repository
Build info: version: '4.23.0', revision: '4df0a231af'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '5.15.0-208.159.3.el9uek.aarch64', java.version: '22.0.2'
Driver info: driver.version: EdgeDriver
	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)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
	at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:144)
	... 11 more
Caused by: org.openqa.selenium.WebDriverException: Command failed with code: 65, executed: [--browser, MicrosoftEdge, --language-binding, java, --output, json]
Unable to discover MicrosoftEdge in online repository
Build info: version: '4.23.0', revision: '4df0a231af'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '5.15.0-208.159.3.el9uek.aarch64', java.version: '22.0.2'
Driver info: driver.version: EdgeDriver
	at org.openqa.selenium.manager.SeleniumManager.runCommand(SeleniumManager.java:170)
	at org.openqa.selenium.manager.SeleniumManager.getBinaryPaths(SeleniumManager.java:247)
	at org.openqa.selenium.remote.service.DriverFinder.getBinaryPaths(DriverFinder.java:102)
	... 18 more

Also happens on Intel architecture with Java 17:

System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-1057-aws', java.version: '17.0.11'

How can we reproduce the issue?

Run any test without Edge being downloaded into the `.cache` directory or installed locally on machine.
This only breaks on Linux, not Mac.

Relevant log output

Already described

Operating System

Linux

Selenium version

Java 22, Selenium 4.23.0

What are the browser(s) and version(s) where you see this issue?

Edge

What are the browser driver(s) and version(s) where you see this issue?

EdgeDriver

Are you using Selenium Grid?

N/A

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

I reported this problem here https://github.com/MicrosoftEdge/EdgeWebDriver/issues/159 (although I am not sure if this is the right tracker for this kind of issues).

I suspect that the format/content of the JSON returned is causing this failure.

./manager/0.4.23/selenium-manager --browser edge --driver msedgedriver --trace --force-browser-download --clear-cache
[2024-07-30T16:45:11.569Z TRACE] Reading metadata from /root/.cache/selenium/se-metadata.json
[2024-07-30T16:45:11.569Z TRACE] Metadata file does not exist. Creating a new one
[2024-07-30T16:45:11.569Z DEBUG] Sending stats to Plausible: Props { browser: "edge", browser_version: "", os: "linux", arch: "x86_64", lang: "", selenium_version: "4.23" }
[2024-07-30T16:45:11.569Z TRACE] Writing metadata to /root/.cache/selenium/se-metadata.json
[2024-07-30T16:45:11.570Z TRACE] Checking msedgedriver in PATH
[2024-07-30T16:45:11.578Z DEBUG] msedgedriver not found in PATH
[2024-07-30T16:45:11.578Z TRACE] Reading metadata from /root/.cache/selenium/se-metadata.json
[2024-07-30T16:45:11.579Z DEBUG] Checking edge releases on https://edgeupdates.microsoft.com/api/products/
[2024-07-30T16:45:12.748Z ERROR] error sending request for url (https://edgeupdates.microsoft.com/api/products/)

โ€ฆ as I can fetch JSON data from the URL that selenium-manager is failing at:

curl https://edgeupdates.microsoft.com/api/products/
[{"Product":"Stable","Releases":[{"ReleaseId":77621,"Platform":"Android","Architecture":"arm64","CVEs":[],"ProductVersion":"126.0.2592.106","Artifacts":[],"PublishedTime":"2024-07-15T03:16:00","ExpectedExpiryDate":"2024-10-15T03:16:00"},{"ReleaseId":78245,"Platform":"Windows","Architecture":"arm64","CVEs":["CVE-2024-38156","CVE-2024-39379","CVE-2024-6998","CVE-2024-5839","CVE-2024-7000","CVE-2024-7003","CVE-2024-5493","CVE-2024-38103","CVE-2024-5499","CVE-2024-6999","CVE-2024-5497","CVE-2024-6778","CVE-2024-6777","CVE-2024-6775","CVE-2024-7001","CVE-2024-6989","CVE-2024-6993"],"ProductVersion":"127.0.2651.74","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/62a8f579-3686-43fe-a0db-10f91d71a944/MicrosoftEdgeEnterpriseARM64.msi","Hash":"99943C5F0BFE5427C9980AF8F8EA43E8252A9E2607F4851B8B8A27BB49860B4C","HashAlgorithm":"SHA256","SizeInBytes":179433472}],"PublishedTime":"2024-07-27T08:33:00","ExpectedExpiryDate":"2025-07-25T18:43:00"},{"ReleaseId":78246,"Platform":"Windows","Architecture":"x64","CVEs":["CVE-2024-38156","CVE-2024-39379","CVE-2024-6998","CVE-2024-5839","CVE-2024-7000","CVE-2024-7003","CVE-2024-5493","CVE-2024-38103","CVE-2024-5499","CVE-2024-6999","CVE-2024-5497","CVE-2024-6778","CVE-2024-6777","CVE-2024-6775","CVE-2024-7001","CVE-2024-6989","CVE-2024-6993"],"ProductVersion":"127.0.2651.74","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/f99bf7d5-77f2-4659-81e7-4e9bed513374/MicrosoftEdgeEnterpriseX64.msi","Hash":"D8E97029246E5E2ED79A263CFE834D1A06B725552232A158241D6500151D1B61","HashAlgorithm":"SHA256","SizeInBytes":178515968}],"PublishedTime":"2024-07-27T09:45:00","ExpectedExpiryDate":"2025-07-25T18:44:00"},{"ReleaseId":78249,"Platform":"Windows","Architecture":"x86","CVEs":["CVE-2024-38156","CVE-2024-39379","CVE-2024-6998","CVE-2024-5839","CVE-2024-7000","CVE-2024-7003","CVE-2024-5493","CVE-2024-38103","CVE-2024-5499","CVE-2024-6999","CVE-2024-5497","CVE-2024-6778","CVE-2024-6777","CVE-2024-6775","CVE-2024-7001","CVE-2024-6989","CVE-2024-6993"],"ProductVersion":"127.0.2651.74","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/7dd9aedf-8e32-4c45-b55e-3a6ff14c3314/MicrosoftEdgeEnterpriseX86.msi","Hash":"4FEC5C270DC3BFE729C5F23C0614EFDF24E90DEBDE6D35A585B16CDFBDDB8979","HashAlgorithm":"SHA256","SizeInBytes":161832960}],"PublishedTime":"2024-07-27T10:56:00","ExpectedExpiryDate":"2025-07-25T18:48:00"},{"ReleaseId":78254,"Platform":"Linux","Architecture":"x64","CVEs":["CVE-2024-38156","CVE-2024-39379","CVE-2024-5839","CVE-2024-7000","CVE-2024-7003","CVE-2024-5493","CVE-2024-38103","CVE-2024-5499","CVE-2024-6999","CVE-2024-5497","CVE-2024-6994","CVE-2024-6778","CVE-2024-6775","CVE-2024-7001","CVE-2024-6989","CVE-2024-6993"],"ProductVersion":"127.0.2651.74","Artifacts":[],"PublishedTime":"2024-07-25T19:07:00","ExpectedExpiryDate":"2025-07-25T19:07:00"},{"ReleaseId":78257,"Platform":"MacOS","Architecture":"universal","CVEs":[],"ProductVersion":"127.0.2651.74","Artifacts":[{"ArtifactName":"pkg","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/a02346ad-1475-4f63-8fba-bd4b5755fcb1/MicrosoftEdge-127.0.2651.74.pkg","Hash":"081684B050BAF0DB09859B778538A194CBF0DF948B08FA731713A7D8D558C0A0","HashAlgorithm":"SHA256","SizeInBytes":393927599},{"ArtifactName":"plist","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/cebc8b15-ce43-4d04-b6b7-c8fffba3b91d/MicrosoftEdge-127.0.2651.74.plist","Hash":"2528D67A9E9A6C18C344ECE4E6C8CE2A925A49333BB055B9569503E61AF750D7","HashAlgorithm":"SHA256","SizeInBytes":3267}],"PublishedTime":"2024-07-25T19:16:00","ExpectedExpiryDate":"2025-07-25T19:16:00"},{"ReleaseId":78498,"Platform":"iOS","Architecture":"arm64","CVEs":[],"ProductVersion":"127.0.2651.81","Artifacts":[],"PublishedTime":"2024-07-30T03:16:00","ExpectedExpiryDate":"2025-07-30T03:16:00"}]},{"Product":"Beta","Releases":[{"ReleaseId":78210,"Platform":"Linux","Architecture":"x64","CVEs":["CVE-2024-38156","CVE-2024-39379","CVE-2024-5839","CVE-2024-7000","CVE-2024-7003","CVE-2024-5493","CVE-2024-38103","CVE-2024-5499","CVE-2024-6999","CVE-2024-5497","CVE-2024-6994","CVE-2024-6778","CVE-2024-6775","CVE-2024-7001","CVE-2024-6989","CVE-2024-6993"],"ProductVersion":"127.0.2651.74","Artifacts":[],"PublishedTime":"2024-07-25T17:26:00","ExpectedExpiryDate":"2024-10-25T17:26:00"},{"ReleaseId":78215,"Platform":"MacOS","Architecture":"universal","CVEs":[],"ProductVersion":"127.0.2651.74","Artifacts":[{"ArtifactName":"plist","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/1672cfd6-d7eb-4731-aff0-f590a1d3fee9/MicrosoftEdgeBeta-127.0.2651.74.plist","Hash":"38853D2F0446D7A6E7540D99F236BEF455454675EFEC03278107A3307DFA5C2A","HashAlgorithm":"SHA256","SizeInBytes":3281},{"ArtifactName":"pkg","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/c693b515-91cc-4c4a-8f62-991f7dd1ea70/MicrosoftEdgeBeta-127.0.2651.74.pkg","Hash":"D22FADD41475E85B56EC32C42D6167898FCF12DDA89DD4B0108593D07A8611A9","HashAlgorithm":"SHA256","SizeInBytes":393954708}],"PublishedTime":"2024-07-25T17:40:00","ExpectedExpiryDate":"2024-10-25T17:40:00"},{"ReleaseId":78218,"Platform":"Windows","Architecture":"arm64","CVEs":["CVE-2024-38156","CVE-2024-39379","CVE-2024-6998","CVE-2024-5839","CVE-2024-7000","CVE-2024-7003","CVE-2024-5493","CVE-2024-38103","CVE-2024-5499","CVE-2024-6999","CVE-2024-5497","CVE-2024-6778","CVE-2024-6777","CVE-2024-6775","CVE-2024-7001","CVE-2024-6989","CVE-2024-6993"],"ProductVersion":"127.0.2651.74","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/320fb669-5184-4bf0-ab18-87ccfe72c096/MicrosoftEdgeBetaEnterpriseARM64.msi","Hash":"A03AB45FA3CDC4BEAA1BB069957A6BA86D01097B270DC39693736033036C56A0","HashAlgorithm":"SHA256","SizeInBytes":179433472}],"PublishedTime":"2024-07-25T17:44:00","ExpectedExpiryDate":"2024-10-25T17:44:00"},{"ReleaseId":78221,"Platform":"Windows","Architecture":"x64","CVEs":["CVE-2024-38156","CVE-2024-39379","CVE-2024-6998","CVE-2024-5839","CVE-2024-7000","CVE-2024-7003","CVE-2024-5493","CVE-2024-38103","CVE-2024-5499","CVE-2024-6999","CVE-2024-5497","CVE-2024-6778","CVE-2024-6777","CVE-2024-6775","CVE-2024-7001","CVE-2024-6989","CVE-2024-6993"],"ProductVersion":"127.0.2651.74","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/c41b2f3c-44b2-43da-968a-4005a70ead71/MicrosoftEdgeBetaEnterpriseX64.msi","Hash":"65BD84278ECE6230AEB8E2C7FED20BCA5FE30BD2AA3C61311278D7D92C4BE691","HashAlgorithm":"SHA256","SizeInBytes":178515968}],"PublishedTime":"2024-07-25T17:58:00","ExpectedExpiryDate":"2024-10-25T17:58:00"},{"ReleaseId":78223,"Platform":"Windows","Architecture":"x86","CVEs":["CVE-2024-38156","CVE-2024-39379","CVE-2024-6998","CVE-2024-5839","CVE-2024-7000","CVE-2024-7003","CVE-2024-5493","CVE-2024-38103","CVE-2024-5499","CVE-2024-6999","CVE-2024-5497","CVE-2024-6778","CVE-2024-6777","CVE-2024-6775","CVE-2024-7001","CVE-2024-6989","CVE-2024-6993"],"ProductVersion":"127.0.2651.74","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/20e582f8-8ff8-4614-a348-9ce4941873eb/MicrosoftEdgeBetaEnterpriseX86.msi","Hash":"877B9D9DA7077ABE861B264BC50ABC9828CD4EF60C495D34163DE94E73CB1717","HashAlgorithm":"SHA256","SizeInBytes":161832960}],"PublishedTime":"2024-07-25T17:59:00","ExpectedExpiryDate":"2024-10-25T17:59:00"},{"ReleaseId":78233,"Platform":"Android","Architecture":"arm64","CVEs":[],"ProductVersion":"127.0.2651.73","Artifacts":[],"PublishedTime":"2024-07-25T18:14:00","ExpectedExpiryDate":"2024-10-25T18:14:00"},{"ReleaseId":78267,"Platform":"iOS","Architecture":"arm64","CVEs":[],"ProductVersion":"127.0.2651.73","Artifacts":[],"PublishedTime":"2024-07-25T20:11:00","ExpectedExpiryDate":"2024-10-25T20:11:00"}]},{"Product":"Dev","Releases":[{"ReleaseId":78141,"Platform":"Linux","Architecture":"x64","CVEs":[],"ProductVersion":"128.0.2730.0","Artifacts":[],"PublishedTime":"2024-07-24T21:34:00","ExpectedExpiryDate":"2024-10-24T21:34:00"},{"ReleaseId":78146,"Platform":"Windows","Architecture":"arm64","CVEs":[],"ProductVersion":"128.0.2730.0","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/2bd548e0-5f52-4a25-826f-57d6fcff076e/MicrosoftEdgeDevEnterpriseARM64.msi","Hash":"F489555149CE67D23FDA59B79BFA447FD2FE069F4991618F836E7CB05B044ECC","HashAlgorithm":"SHA256","SizeInBytes":181223424}],"PublishedTime":"2024-07-24T21:45:00","ExpectedExpiryDate":"2024-10-24T21:45:00"},{"ReleaseId":78150,"Platform":"MacOS","Architecture":"universal","CVEs":[],"ProductVersion":"128.0.2730.0","Artifacts":[{"ArtifactName":"plist","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/d0b23365-df08-4ad0-a3d0-151e8318d4f6/MicrosoftEdgeDev-128.0.2730.0.plist","Hash":"DE69B1BFDA739FB92C18F9D79AC2C2F17A1C8E0D437354AB5703651186450A71","HashAlgorithm":"SHA256","SizeInBytes":3277},{"ArtifactName":"pkg","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/d923881e-9241-433b-8b07-113a298264e7/MicrosoftEdgeDev-128.0.2730.0.pkg","Hash":"BB95AE89D693A2590480B7CF125F7307A4AB7F59B9D2957F620A06A2238B7F52","HashAlgorithm":"SHA256","SizeInBytes":396932101}],"PublishedTime":"2024-07-24T21:51:00","ExpectedExpiryDate":"2024-10-24T21:51:00"},{"ReleaseId":78152,"Platform":"Windows","Architecture":"x64","CVEs":[],"ProductVersion":"128.0.2730.0","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/09d367c3-cb89-453a-baf9-0293e299dd91/MicrosoftEdgeDevEnterpriseX64.msi","Hash":"9648C7A7F10617E0081DFC9DF0CC18BD4CABDE07F7A8950F03CC61FFF7C25704","HashAlgorithm":"SHA256","SizeInBytes":179879936}],"PublishedTime":"2024-07-24T22:06:00","ExpectedExpiryDate":"2024-10-24T22:06:00"},{"ReleaseId":78157,"Platform":"Windows","Architecture":"x86","CVEs":[],"ProductVersion":"128.0.2730.0","Artifacts":[{"ArtifactName":"msi","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/ad67a010-fa3a-44a7-97de-4c77e1075b0b/MicrosoftEdgeDevEnterpriseX86.msi","Hash":"C5FABD86EA483DC145E2FBBA6E4F20A1C4C7DD60B2134B1CD7FDA9A4C00B183B","HashAlgorithm":"SHA256","SizeInBytes":163250176}],"PublishedTime":"2024-07-24T22:08:00","ExpectedExpiryDate":"2024-10-24T22:08:00"},{"ReleaseId":78169,"Platform":"Android","Architecture":"arm64","CVEs":[],"ProductVersion":"128.0.2730.0","Artifacts":[],"PublishedTime":"2024-07-24T22:38:00","ExpectedExpiryDate":"2024-10-24T22:38:00"},{"ReleaseId":78209,"Platform":"iOS","Architecture":"arm64","CVEs":[],"ProductVersion":"128.0.2729.0","Artifacts":[],"PublishedTime":"2024-07-25T16:16:00","ExpectedExpiryDate":"2024-10-25T16:16:00"}]},{"Product":"Canary","Releases":[{"ReleaseId":78503,"Platform":"Windows","Architecture":"x86","CVEs":[],"ProductVersion":"129.0.2746.0","Artifacts":[],"PublishedTime":"2024-07-30T13:29:00","ExpectedExpiryDate":"2024-10-30T08:09:00"},{"ReleaseId":78504,"Platform":"Windows","Architecture":"arm64","CVEs":[],"ProductVersion":"129.0.2746.0","Artifacts":[],"PublishedTime":"2024-07-30T13:06:00","ExpectedExpiryDate":"2024-10-30T08:13:00"},{"ReleaseId":78506,"Platform":"Windows","Architecture":"x64","CVEs":[],"ProductVersion":"129.0.2746.0","Artifacts":[],"PublishedTime":"2024-07-30T13:28:00","ExpectedExpiryDate":"2024-10-30T08:27:00"},{"ReleaseId":78522,"Platform":"Android","Architecture":"arm64","CVEs":[],"ProductVersion":"129.0.2745.0","Artifacts":[],"PublishedTime":"2024-07-30T13:07:00","ExpectedExpiryDate":"2024-10-30T13:07:00"},{"ReleaseId":78527,"Platform":"MacOS","Architecture":"universal","CVEs":[],"ProductVersion":"129.0.2746.0","Artifacts":[{"ArtifactName":"plist","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/a4f929fa-0b91-4fe2-8f26-3ea438153cd9/MicrosoftEdgeCanary-129.0.2746.0.plist","Hash":"23682F7A482B3DA395136881611C16AF7F2D287C904025CF44DBCA961BDFB9F7","HashAlgorithm":"SHA256","SizeInBytes":3286},{"ArtifactName":"pkg","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/b15e3251-f3b2-47b6-bc54-dcdd3a62ed28/MicrosoftEdgeCanary-129.0.2746.0.pkg","Hash":"B5F27F77B7CB5F507CE9301E87170FFA9CA90F6324F45B373E2CA0642B50057E","HashAlgorithm":"SHA256","SizeInBytes":396881274}],"PublishedTime":"2024-07-30T13:18:00","ExpectedExpiryDate":"2024-10-30T13:18:00"}]},{"Product":"EdgeUpdate","Releases":[{"ReleaseId":78446,"Platform":"Windows","Architecture":"x86","CVEs":[],"ProductVersion":"1.3.195.15","Artifacts":[{"ArtifactName":"exe","Location":"https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/932857a7-3fd2-460a-98b9-8625069e5697/MicrosoftEdgeUpdateSetup_X86_1.3.195.15.exe","Hash":"91F0DEEC7D7319E57477B74A7A5F4D17C15EB2924B53E05A5998D67ECC8201F2","HashAlgorithm":"SHA256","SizeInBytes":1645112}],"PublishedTime":"2024-07-29T03:34:00","ExpectedExpiryDate":"2025-07-29T03:34:00"}]}

Is this sufficient logging to open this issue?

@diemol please reopen this issue. I am not the only one who is having it and itโ€™s likely not an โ€œoperator errorโ€

thank you.