Skip to content

Commit

Permalink
[wdc] Fix WebDriverChecker.getBrowserVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoanh2n committed Mar 20, 2022
1 parent afc4881 commit 36ab40c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ protected double getBrowserVersion(Object... args) {
if (value.isEmpty()) {
value = getCapability("version", args);
}
if (value.isEmpty()) {
return 0;
}
return Double.parseDouble(value.split("\\.")[0]);
}

Expand Down

0 comments on commit 36ab40c

Please sign in to comment.