Skip to content

Commit 3f8ea60

Browse files
committed
Fixing passing capabilities that are not part of FirefoxOptions. They are needed for legacy Firefox driver.
1 parent 3538223 commit 3f8ea60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/firefox/FirefoxOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public Capabilities toCapabilities() {
458458
}
459459

460460
private Capabilities toCapabilities(Capabilities source) {
461-
HashMap<String, Object> caps = new HashMap<>();
461+
HashMap<String, Object> caps = new HashMap<>(source.asMap());
462462

463463
if (isLegacy()) {
464464
caps.put(FirefoxDriver.MARIONETTE, false);

0 commit comments

Comments
 (0)