Skip to content

Commit

Permalink
Fixing passing capabilities that are not part of FirefoxOptions. They…
Browse files Browse the repository at this point in the history
… are needed for legacy Firefox driver.
  • Loading branch information
barancev committed Mar 29, 2017
1 parent 3538223 commit 3f8ea60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public Capabilities toCapabilities() {
}

private Capabilities toCapabilities(Capabilities source) {
HashMap<String, Object> caps = new HashMap<>();
HashMap<String, Object> caps = new HashMap<>(source.asMap());

if (isLegacy()) {
caps.put(FirefoxDriver.MARIONETTE, false);
Expand Down

0 comments on commit 3f8ea60

Please sign in to comment.