Navigation Menu

Skip to content

Commit

Permalink
issue #19 : remote driver with firefox
Browse files Browse the repository at this point in the history
capabilities were being incorrectly set as 'capabilities' in the driver
initialization when the browser is firefox
  • Loading branch information
alisaifee committed Jan 15, 2014
1 parent 79caa10 commit 7973e51
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions holmium/core/config.py
Expand Up @@ -248,9 +248,12 @@ class RemoteConfig(DriverConfig):
specific configuration)
"""
def __call__(self, config, args):
if config.browser == "firefox" and "firefox_profile" in args:
args["browser_profile"] = args["firefox_profile"]
args.pop("firefox_profile")
if config.browser == "firefox":
if "firefox_profile" in args:
args["browser_profile"] = args["firefox_profile"]
args.pop("firefox_profile")
args["desired_capabilities"] = args["capabilities"]
args.pop("capabilities")
args["command_executor"] = config.remote
return super(RemoteConfig, self).__call__(config, args)

Expand Down

0 comments on commit 7973e51

Please sign in to comment.