Skip to content

Commit

Permalink
Update capabilities properly instead of assuming dict structure. Fixes
Browse files Browse the repository at this point in the history
…SeleniumHQ#3927

We were previously assuming, incorrectly, the shape of the dict. We then
use the key that we wanted originally... *sigh* I should have been more
careful.
  • Loading branch information
AutomatedTester committed Apr 27, 2017
1 parent de121ca commit 01ac0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def start_session(self, capabilities, browser_profile=None):
if "moz:firefoxOptions" in capabilities:
capabilities["moz:firefoxOptions"]["profile"] = browser_profile.encoded
else:
capabilities['desiredCapabilities'].update({'firefox_profile': browser_profile.encoded})
capabilities.update({'firefox_profile': browser_profile.encoded})
w3c_caps["alwaysMatch"].update(capabilities)
parameters = {"capabilities": w3c_caps,
"desiredCapabilities": capabilities}
Expand Down

0 comments on commit 01ac0cc

Please sign in to comment.