Fall back to the w3c capability name for "platform"
Because we changed it, didn't we?
@@ -34,6 +34,10 @@ default String getBrowserName() {
default Platform getPlatform() {
Object rawPlatform = getCapability("platform");
+ if (rawPlatform == null) {
+ rawPlatform = getCapability("platformName");
+ }
+
if (rawPlatform == null) {
return null;
}
