diff --git a/README.md b/README.md index 265cd21..cca937a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ > A Grunt plugin for running [Protractor](https://github.com/angular/protractor) runner. ## Getting Started -This plugin requires Grunt `>=0.4.1`. +This plugin requires Grunt `>=0.4.1` and protractor '^5.x.x' For Protractor `5.x.x`, please use version `v5.x.x` of this plugin. @@ -18,7 +18,7 @@ For Protractor `2.x.x`, please use version `v2.x.x` of this plugin. If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: ```shell -npm install grunt-protractor-runner --save-dev +npm install azachar/grunt-protractor-runner --save-dev ``` This plugin will install `protractor` module locally as a normal dependency. @@ -163,17 +163,6 @@ In lieu of a formal styleguide, take care to maintain the existing coding style. ## FAQ -### Q: Want to global installed protractor? - -This plugin installs `protractor` module locally as a normal dependency. - -In case you want to use the plugin with the global installed protractor command. You can do it with these steps below. - -* Remove local install protractor by `rm -rf node_modules/protractor` -* Install `protractor` globally with `npm install -g protractor` -* Make sure that node can resolve the module with `require()` mechanism. See [Module loading from the global folders](http://nodejs.org/api/modules.html#modules_loading_from_the_global_folders) for more information. -* Run `webdriver-manager update` to install/update selenium driver for global install protractor. - ### Q: Error: Could not find chromedriver at.... You need to install/update selenium webdriver for protractor. diff --git a/package.json b/package.json index 8847b4b..8c86989 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "test": "grunt test" }, "dependencies": { - "protractor": "^5.0.0", "split": "~1.0.0", "through2": "~2.0.0" }, @@ -31,9 +30,11 @@ "grunt-contrib-jshint": "~0.11.3", "grunt-contrib-clean": "~0.7.0", "grunt-contrib-nodeunit": "~0.4.1", + "protractor": "^5.4.3", "grunt": "~0.4.1" }, "peerDependencies": { + "protractor": "^5", "grunt": ">=0.4.0" }, "keywords": [