Add a `toJson` method to `Browser` so it becomes easier to use in Capabilities
@@ -72,4 +72,8 @@ public boolean is(String browserName) {
return browserName().equals(browserName) || "Safari".equals(browserName);
}
};
+
+ default String toJson() {
+ return browserName();
+ }
}
