Ardesco / driver-binary-downloader-maven-plugin

A Maven plugin that will download the WebDriver stand alone server executables for use in your mavenised Selenium project.
Apache License 2.0
92 stars 52 forks source link

System architecture is not set to ARM on M1 mac #115

Open MichaelRijsdijk opened 2 years ago

MichaelRijsdijk commented 2 years ago

System architecture is not set to ARM on M1 mac. Logging shows "aarch64" as architecture, but this is not a valid match for arm:

private static List architectureArmNames = Arrays.asList("arm", "armv41");

When forcing arm binaries "-DarmBinaries=true" it does download the correct binary, but the rest of the code still thinks it is a standard 64bit architecture.

MichaelRijsdijk commented 2 years ago

I created a PR https://github.com/Ardesco/driver-binary-downloader-maven-plugin/pull/114

PR doesn't seem to fix it, it recognises the aarch64 as systemarchitecture, but it can't create the correct drivercontext:

[WARNING] No driver contexts detected for the current operating system, no maven properties set!

[22:27:30,628 INFO][TID 20][c.l.s.c.DriverFactory.instantiateWebDriver] Local Operating System: MAC OS X [22:27:30,631 INFO][TID 20][c.l.s.c.DriverFactory.instantiateWebDriver] Local Architecture: aarch64 [22:27:30,631 INFO][TID 20][c.l.s.c.DriverFactory.instantiateWebDriver] Selected Browser: chrome