Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Add support for afterLaunch option #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Supported arguments are below.
* mochaOpts `object`: Mocha test framework options object to be passed
* beforeLaunch `string`: You can specify a file containing code to run once configs are read but before any environment setup. This will only run once, and before onPrepare.
* onPrepare `string`: You can specify a file containing code to run once protractor is ready and available, and before the specs are executed. If multiple capabilities are being run, this will run once per capability.
* afterLaunch `string`: You can specify a file containing code to run once all tests have finished running and the WebDriver instance has been shut down.
* webDriverProxy `string`: WebDriver proxy configuration to run remote tests

#### options.output
Expand Down
2 changes: 1 addition & 1 deletion tasks/protractor_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = function(grunt) {
grunt.verbose.writeln("Options: " + util.inspect(opts));

var keepAlive = opts['keepAlive'];
var strArgs = ["seleniumAddress", "seleniumServerJar", "seleniumPort", "baseUrl", "rootElement", "browser", "chromeDriver", "chromeOnly", "directConnect", "sauceUser", "sauceKey", "sauceSeleniumAddress", "framework", "frameworkPath", "suite", "beforeLaunch", "onPrepare", "webDriverProxy"];
var strArgs = ["seleniumAddress", "seleniumServerJar", "seleniumPort", "baseUrl", "rootElement", "browser", "chromeDriver", "chromeOnly", "directConnect", "sauceUser", "sauceKey", "sauceSeleniumAddress", "framework", "frameworkPath", "suite", "beforeLaunch", "onPrepare", "afterLaunch", "webDriverProxy"];
var listArgs = ["specs", "exclude"];
var boolArgs = ["includeStackTrace", "verbose"];
var objectArgs = ["params", "capabilities", "cucumberOpts", "mochaOpts"];
Expand Down