What is Protractor? Protractor is an end-to-end test framework for AngularJS applications. Protractor is a Node.js program built on top of WebDriverJS. Protractor runs tests against your application running in a real browser, interacting with it as a user would. Protractor supports Angular-specific locator strategies, which allows you to test Angular-specific elements without any setup effort on your part.  Setup  Download Node.JS […]

Read More →

Angular code is tested by protractor. There are so many approaches to test the code like selecting element, expectation and get etc., Example:  <form> <div class=”form-group”> <div id=”divId”> <h5 class=”heading”>This is test example</h5> <p class=”class1″ ng-show=”attribute.id”>View Attribute {{attribute.id}}</p> <p class=”class2″ ng-hide=”attribute.id”>New Attribute</p> <div class=”col-md-12″> <input type=”text” class=”col-md-12 attributeClass” name=”attributeName” ng-model=”attribute.name” ng-readonly=”attribute.id”ng-pattern=”/^[a-zA-Z0-9_-]+$/” /> </div> <div class=”col-md-12″> <input […]

Read More →