Skip to content

Commit d2205d9

Browse files
committed
[java] fix bug that forced platformName of windows 7 to vista
1 parent 1a73c3f commit d2205d9

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

java/src/org/openqa/selenium/Platform.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public String toString() {
5858
/**
5959
* For versions of Windows that "feel like" Windows Vista.
6060
*/
61-
VISTA("windows vista", "Windows Server 2008", "windows 7", "win7") {
61+
VISTA("windows 7", "win7") {
6262
@Override
6363
public Platform family() {
6464
return WINDOWS;
@@ -69,6 +69,17 @@ public String toString() {
6969
}
7070
},
7171

72+
WIN7("windows 7", "win7") {
73+
@Override
74+
public Platform family() {
75+
return WINDOWS;
76+
}
77+
@Override
78+
public String toString() {
79+
return "Windows 7";
80+
}
81+
},
82+
7283
/**
7384
* For versions of Windows that "feel like" Windows 8.
7485
*/

0 commit comments

Comments
 (0)