Skip to content

Commit

Permalink
Add a toJson method to Browser so it becomes easier to use in Cap…
Browse files Browse the repository at this point in the history
…abilities
  • Loading branch information
shs96c committed Oct 13, 2021
1 parent fcab887 commit 77e99f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/src/org/openqa/selenium/remote/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,8 @@ public boolean is(String browserName) {
return browserName().equals(browserName) || "Safari".equals(browserName);
}
};

default String toJson() {
return browserName();
}
}

0 comments on commit 77e99f6

Please sign in to comment.