Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including generator-protractor with all npm packages installed. Try it out:

require("yo/package.json"); // yo is a peer dependency. var generatorProtractor = require("generator-protractor")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

generator-protractor v0.5.0

A Yeoman code generator for Protractor. Protractor is an end to end test framework for Angular applications built on top of webdriverJS.

generator-protractor Build Status

A Yeoman code generator for Protractor. Protractor is an end to end test framework for Angular applications built on top of webdriverJS.

It generates a node project with protractor 3.0.0. The project includes a few sample tests.

Getting Started

Make sure you have Yeoman installed.

$ npm install -g yo

To install generator-protractor from npm, run:

$ npm install -g generator-protractor

###Usage

Create a new directory where you want to add your integration tests and and cd into it:

$ mkdir my-protractor-project
$ cd my-protractor-project

Run the generator:

$ yo protractor

###Installing selenium and running the tests

You need to download selenium and start it in your local machine. Just run the following command:

$ ./node_modules/.bin/webdriver-manager update

Start the selenium standalone server with:

$ ./node_modules/.bin/webdriver-manager start

Open another terminal and run the integration tests:

$ ./node_modules/.bin/protractor protractor.conf.js

Getting To Know Yeoman

If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.

License

MIT License

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free