Skip to content

Commit

Permalink
[py] fix unit test for 2.7.14
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Nov 14, 2017
1 parent 599de28 commit 7fff2dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py/selenium/webdriver/opera/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def to_capabilities(self):
"""
capabilities = ChromeOptions.to_capabilities(self)
capabilities.update(DesiredCapabilities.OPERA)
opera_options = capabilities[self.KEY] = \
capabilities.pop(ChromeOptions.KEY)
opera_options = capabilities[self.KEY] = capabilities.pop(ChromeOptions.KEY, None)

if self.android_package_name:
opera_options["androidPackage"] = self.android_package_name
Expand Down

0 comments on commit 7fff2dc

Please sign in to comment.