Skip to content

Commit 2802b6f

Browse files
Move capabilities passed through to be only desiredCapabilities
Having it as required is causing issue with intermediary nodes, using desired as this is a topic that will be discussed in Seattle in the next W3C F2F
1 parent 44161f5 commit 2802b6f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

py/selenium/webdriver/firefox/options.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ def to_capabilities(self):
8686
8787
returns a dictionary with everything
8888
"""
89-
required = {}
89+
desired = {}
9090
if self.binary_location:
91-
required["binary"] = self.binary_location
91+
desired["binary"] = self.binary_location
9292
if self._profile:
93-
required["firefox_profile"] = self._profile.encoded
94-
required["args"] = self.arguments
95-
capabilities = {"requiredCapabilities": required}
93+
desired["firefox_profile"] = self._profile.encoded
94+
desired["args"] = self.arguments
95+
capabilities = {"desiredCapabilities": desired}
9696
return capabilities

0 commit comments

Comments
 (0)