From 04e5bfbfcade0cbbef58213bc7b227b5db753d57 Mon Sep 17 00:00:00 2001 From: Sammy Jelin Date: Thu, 1 Oct 2015 06:03:52 -0700 Subject: [PATCH] chore(runner): make plugins optional param for createBrowser --- lib/runner.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/runner.js b/lib/runner.js index 96aed4e74..5c2c35b9b 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -172,6 +172,8 @@ Runner.prototype.setupGlobals_ = function(browser_) { * This is used to set up the initial protractor instances and any * future ones. * + * @param {?Plugin} The plugin functions + * * @return {Protractor} a protractor instance. * @public */ @@ -183,7 +185,9 @@ Runner.prototype.createBrowser = function(plugins) { config.baseUrl, config.rootElement); browser_.params = config.params; - browser_.plugins_ = plugins; + if (plugins) { + browser_.plugins_ = plugins; + } if (config.getPageTimeout) { browser_.getPageTimeout = config.getPageTimeout; }