Brochures "angular was never provided by resumeBootstrap"

I'm trying to just download a simple protractor test (actually, just see how it works). I have the following config file:

exports.config = {
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['../test/spec.js'],
    capabilities: {
        'browserName': 'firefox'
    },
}

      

simple spec (taken from tutorial):

// spec.js
describe('liverabbit homepage', function() {
    it('should have a title', function() {
        browser.get('http://localhost:1337/');

        expect(browser.getTitle()).toEqual('New Sails App');
    });
});

      

and i added this line to html:

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js"></script>

      

(before adding this line, the protrans failed as angular could not be found).

I started webdriver-manager, took out the app (sailsjs app) and started the protractor with BOM.

Then I got this: "angular never provided resumeBootstrap"

+3


source to share


1 answer


Not only do you need to include angular, but you also need to have at least one angular app defined on this page. To fix the problem, simply replace the element like this:

<body ng-app>

      



in your html.

+3


source







All Articles