Coder Social home page Coder Social logo

protractor-examples's Introduction

Protractor-Examples

This repository is a collection of some basic protractor examples to give people an idea of how to get started with testing in protractor for angular and non-angular applications, showing how to create page objects to help with test readability and maintainability and ow to run tests in multiple browsers in parallel.

To run the tests:

1). Install prequisites

npm install

2). Download and update then start WebDriver

npm run wdm:update
npm run wdm:start

3). Use one of the following commands to run a test file

npm run angular:demo-app
npm run angular:multi-browser
npm run non-angular:ignoreSync
npm run non-angular:webDriver
npm run page-objects

'npm run angular:demo-app' runs the basic demo app test in 1-basic-angular folder

'npm run angular:multi-browser' runs the same test file but with a new conf file in same folder

'npm run non-angular:ignoreSync' runs a non-angular test that uses the ingoreSynchronization flag

'npm run non-angular:webDriver' runs the same non-angular test, but uses calls to browser.driver instead of

'npm run page-objects' runs a test similar to the basic demo app test, but using page objects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.