GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - qualityshepherd/protractor-example: Example protractor project that uses page objects...

BranchesTags
Open more actions menu

Latest commit

 

History

255 Commits
255 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
pages
pages
 
 
specs
specs
 
 
.gitignore
.gitignore
 
 
.jshintrc
.jshintrc
 
 
.npmrc
.npmrc
 
 
README.md
README.md
 
 
conf.js
conf.js
 
 
flake
flake
 
 
package.json
package.json
 
 
sauceConf.js
sauceConf.js
 
 

Repository files navigation

Protractor Example

Herein lies an example Protractor project, that includes tests (some quite silly) that aim to illustrate solutions for common issues when writing e2e tests.

Example Protractor project that:

  • Makes use of page objects
  • Runs tests on Sauce Labs
  • Runs multiple browsers at once
  • Runs tests sharded (parallel)
  • Includes examples tests for both Angular, and non-Angular applications
  • Uses protractor-flake to re-run failed tests
  • is written using es6

Setup:

  • Install Node (v8.x.x or later)
  • git clone [email protected]:qualityshepherd/protractor-example.git
  • npm i to install the project dependencies

Run tests:

  • run tests via plain Protractor node_modules/.bin/protractor conf.js
  • run tests npm test (runs via flake, which re-runs failed tests)
  • run with flake ./flake conf.js
  • run on saucelabs./flake sauceConf.js (add your username/key)

Or if you're a non-reader, watch the video...

Troubleshooting

  • run node -v and make sure your node version is 8.x.x or greater
  • webdriver-manager should have updated on install, but if not, run npm run update to be sure

About

Example protractor project that uses page objects...

Topics

javascriptprotractorselenium-webdrivertestingwebdriver

Resources

Readme
Activity

Stars

92 stars

Watchers

15 watching

Forks

94 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.