Using Protractor Test with Bootstrapped AngularJS Using Protractor Test with Bootstrapped AngularJS angularjs angularjs

Using Protractor Test with Bootstrapped AngularJS


go to protractor confiuration and add this

onPrepare: function() {// implicit and page load timeouts  browser.manage().timeouts().pageLoadTimeout(40000);  browser.manage().timeouts().implicitlyWait(25000);  // for non-angular page  browser.ignoreSynchronization = true;  // sign in before all tests}

It worked for me

my full config file looks like this...

// conf.jsexports.config = {seleniumAddress: 'http://localhost:4444/wd/hub',specs: ['../**/*.e2e.js'],multiCapabilities: [{browserName: 'firefox'}],onPrepare: function() {// implicit and page load timeoutsbrowser.manage().timeouts().pageLoadTimeout(40000);browser.manage().timeouts().implicitlyWait(25000);// for non-angular pagebrowser.ignoreSynchronization = true;// sign in before all tests }}

What actually happens is that you ask from protractor to wait for an amount of time and ignnore the document.ready(), in order to give you time to bootstrap angular manually.