From d2205d9ba63a5d0c366b1071d3da2813a58a8983 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Wed, 21 Sep 2022 16:27:44 -0500 Subject: [PATCH] [java] fix bug that forced platformName of windows 7 to vista --- java/src/org/openqa/selenium/Platform.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/java/src/org/openqa/selenium/Platform.java b/java/src/org/openqa/selenium/Platform.java index 019520d99920f..f819e1ddfb429 100644 --- a/java/src/org/openqa/selenium/Platform.java +++ b/java/src/org/openqa/selenium/Platform.java @@ -58,7 +58,7 @@ public String toString() { /** * For versions of Windows that "feel like" Windows Vista. */ - VISTA("windows vista", "Windows Server 2008", "windows 7", "win7") { + VISTA("windows 7", "win7") { @Override public Platform family() { return WINDOWS; @@ -69,6 +69,17 @@ public String toString() { } }, + WIN7("windows 7", "win7") { + @Override + public Platform family() { + return WINDOWS; + } + @Override + public String toString() { + return "Windows 7"; + } + }, + /** * For versions of Windows that "feel like" Windows 8. */