Tutorial by Examples

Requirements: Protractor requires the following dependencies to be installed prior to installation: Java JDK 1.7 or higher Node.js v4 or higher Installation: Download and install Node.js from this URL: https://nodejs.org/en/ To see if the Node.js installation is successfull, you can go an...
Protractor needs only two files to run the first test, spec (test code) file and configuration file. The spec file contains test code and the other one contains configuration details like spec file path, browser details, test url, framework parameters etc. To write first test we will be providing on...
Open a new command line or terminal window and create a clean folder for testing. Protractor needs two files to run, a spec file and a configuration file. Let's start with a simple test that navigates to the todo list example in the AngularJS website and adds a new todo item to the list. Copy the...
Protractor can selectively run groups of tests using fdescribe() instead of describe(). fdescribe('first group',()=>{ it('only this test will run',()=>{ //code that will run }); }); describe('second group',()=>{ it('this code will not run',()=>{ //code...
Protractor allows tests to be set as pending. This means that protractor will not execute the test, but will instead output: Pending: 1) Test Name Temporarily disabled with xit Or, if disabled with xdescribe(): Pending: 1) Test Name No reason given Combinations A xit() within an xdesc...
Protractor Installation and Setup Step 1: Download and install NodeJS from here. Make sure you have latest version of node. Here, I am using node v7.8.0. You will need to have the Java Development Kit(JDK) installed to run selenium. Step 2: Open your terminal and type in the following command to i...

Page 1 of 1