From 0a9d6899c15e73cec7a9f8b2d6aede48443d0b1c Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:26:49 -0500 Subject: [PATCH] Throw Error When Using Unsupported Linux ARM (#14616) --------- Co-authored-by: Puja Jagani Co-authored-by: Viet Nguyen Duc --- java/src/org/openqa/selenium/manager/SeleniumManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/src/org/openqa/selenium/manager/SeleniumManager.java b/java/src/org/openqa/selenium/manager/SeleniumManager.java index 2c7acdbc9f1b5..f212b2b899d05 100644 --- a/java/src/org/openqa/selenium/manager/SeleniumManager.java +++ b/java/src/org/openqa/selenium/manager/SeleniumManager.java @@ -194,7 +194,11 @@ private synchronized Path getBinary() { } else if (current.is(MAC)) { folder = "macos"; } else if (current.is(LINUX)) { - folder = "linux"; + if (System.getProperty("os.arch").contains("arm")) { + throw new WebDriverException("Linux ARM is not supported by Selenium Manager"); + } else { + folder = "linux"; + } } else if (current.is(UNIX)) { LOG.warning( String.format(