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

feat(dependencies): protractor v5 support #183

Open
wants to merge 3 commits 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
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@
"test": "grunt test"
},
"dependencies": {
"protractor": "^5.0.0",
"split": "~1.0.0",
"through2": "~2.0.0"
},
"devDependencies": {
"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": [
Expand Down