Skip to content

Commit 77e99f6

Browse files
committed
Add a toJson method to Browser so it becomes easier to use in Capabilities
1 parent fcab887 commit 77e99f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/src/org/openqa/selenium/remote/Browser.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,8 @@ public boolean is(String browserName) {
7272
return browserName().equals(browserName) || "Safari".equals(browserName);
7373
}
7474
};
75+
76+
default String toJson() {
77+
return browserName();
78+
}
7579
}

0 commit comments

Comments
 (0)