Skip to content

Commit

Permalink
[java] fix bug that forced platformName of windows 7 to vista
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 21, 2022
1 parent 1a73c3f commit d2205d9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion java/src/org/openqa/selenium/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
*/
Expand Down

0 comments on commit d2205d9

Please sign in to comment.