We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6aebba commit 04e5bfbCopy full SHA for 04e5bfb
lib/runner.js
@@ -172,6 +172,8 @@ Runner.prototype.setupGlobals_ = function(browser_) {
172
* This is used to set up the initial protractor instances and any
173
* future ones.
174
*
175
+ * @param {?Plugin} The plugin functions
176
+ *
177
* @return {Protractor} a protractor instance.
178
* @public
179
*/
@@ -183,7 +185,9 @@ Runner.prototype.createBrowser = function(plugins) {
183
185
config.baseUrl, config.rootElement);
184
186
187
browser_.params = config.params;
- browser_.plugins_ = plugins;
188
+ if (plugins) {
189
+ browser_.plugins_ = plugins;
190
+ }
191
if (config.getPageTimeout) {
192
browser_.getPageTimeout = config.getPageTimeout;
193
}
0 commit comments