Skip to content

Commit

Permalink
improve upon prev commit #924
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Jan 28, 2020
1 parent db6b06b commit 4fbf704
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ public static Driver start(ScenarioContext context, Map<String, Object> options,
private Map<String, Object> getCapabilities(String browserName) {
Map<String, Object> map = webDriverCapabilities;
if (map == null) {
map = new HashMap();
map.put("browserName", browserName);
map = new HashMap();
}
map.putIfAbsent("browserName", browserName);
return Collections.singletonMap("capabilities", map);
}

Expand Down

0 comments on commit 4fbf704

Please sign in to comment.