Skip to content

Commit

Permalink
Move capabilities passed through to be only desiredCapabilities
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AutomatedTester committed Jun 10, 2016
1 parent 44161f5 commit 2802b6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py/selenium/webdriver/firefox/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def to_capabilities(self):
returns a dictionary with everything
"""
required = {}
desired = {}
if self.binary_location:
required["binary"] = self.binary_location
desired["binary"] = self.binary_location
if self._profile:
required["firefox_profile"] = self._profile.encoded
required["args"] = self.arguments
capabilities = {"requiredCapabilities": required}
desired["firefox_profile"] = self._profile.encoded
desired["args"] = self.arguments
capabilities = {"desiredCapabilities": desired}
return capabilities

0 comments on commit 2802b6f

Please sign in to comment.