Friday, 3 June 2016

Hello World of Protractor


-----------SpecOne.js-------------------------

describe('angularjs homepage', function() {   it('should have a title', function() {     browser.get('http://angularjs.org/');     expect(browser.getTitle()).toContain('AngularJS');   }); });


------------Config.js--------------------------
exports.config = { //The address of a running selenium server.   seleniumAddress: 'http://localhost:4444/wd/hub', //Here we specify the name of the specs files.   specs: ['SpecOne.js'] }



For Running:

1. Start selenium Server

2. Run>protractor conf.js


Thats all.

No comments:

Post a Comment