Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Fix Chrome support so that --webdriver-binary is required and --binar…
Browse files Browse the repository at this point in the history
…y is optional
  • Loading branch information
jgraham committed Apr 15, 2015
1 parent 1ee211b commit ae6dc5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wptrunner/browsers/chrome.py
Expand Up @@ -20,7 +20,7 @@


def check_args(**kwargs):
require_arg(kwargs, "binary")
require_arg(kwargs, "webdriver_binary")


def browser_kwargs(**kwargs):
Expand All @@ -34,9 +34,9 @@ def executor_kwargs(test_type, server_config, cache_manager, **kwargs):
executor_kwargs = base_executor_kwargs(test_type, server_config,
cache_manager, **kwargs)
executor_kwargs["close_after_done"] = True
executor_kwargs["capabilities"] = dict(DesiredCapabilities.CHROME.items() +
{"chromeOptions":
{"binary": kwargs["binary"]}}.items())
executor_kwargs["capabilities"] = dict(DesiredCapabilities.CHROME.items())
if kwargs["binary"] is not None:
executor_kwargs["capabilities"]["chromeOptions"] = {"binary": kwargs["binary"]}

return executor_kwargs

Expand Down

0 comments on commit ae6dc5f

Please sign in to comment.