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-modern-protractor with all npm packages installed. Try it out:

var generatorModernProtractor = require("generator-modern-protractor")

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

generator-modern-protractor v1.1.1

Yeoman generator for protractorJS projects, with TypeScript, async/await, PageFragments, nice console and junit.xml output, screenshots on failure, JasmineJS, matchers for elements

generator-modern-protractor NPM version Build Status Dependency Status

Yeoman generator for ProtractorJS projects. Generates new project with ProtractorJS using most modern and shiny approaches.

Whats inside?

  • ProtractorJS 5.1.1
  • TypeScript 2.2
  • JasmineJS (as Protractor 5.1.1 dependency)
  • Async/Await support, WebdriverJS ControlFlow is disabled
  • PageObjects using ES6 classes
  • PageFragments (Components) using protractor-element-extend library
  • Additional jasmine-protractor-matchers to verify elements visibility easily
  • Reporting made possible by nice console reporter and junit.xml reporter (to provide test results to your CI system)
  • If you are using Visual Studio Code IDE - debug with TypeScript compilation is configured
  • Post conditions are added - wiping cookies, local and session storage after each test

Installation and generation of project

First, install Yeoman and generator-modern-protractor using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-modern-protractor

Make new folder for your project, and open it:

mkdir my-shiny-automation-project
cd my-shiny-automation-project

Then generate your new project (will be unpacked in current location, no subfolder):

yo modern-protractor

Feel free to learn more about Yeoman.

Made possible, and developed by Ciklum Testing Center of Excellence

We love Open Source!


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