diff --git a/lib/launcher.js b/lib/launcher.js index 7d9341055..5ac5ee170 100644 --- a/lib/launcher.js +++ b/lib/launcher.js @@ -76,6 +76,13 @@ var Launcher = function(emitter, injector) { }); return deferred.promise; }; + + browser.restart = function() { + var self = this; + this.kill(function() { + self.start(url); + }); + }; } log.info('Starting browser %s', browser.name);