Well this is the error I get when I run protractor:
Failed: Angular could not be found on the page http://localhost:8080/ . If this is not an Angular application, you may need to turn off waiting for Angular.
The only thing I've done is change node versions to 7 , and install protractor and phantomjs , and when I run the protractor tests/tests.js command I get that error.
tests.js:
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
chromeOnly: true,
specs: ["e2e/TC01-loadFilm.js"]
};
AngularJS and Bootstrap is installed in a /public folder, both my /public and /tests folders are in the root of the project, I don't know if that will be the problem.
I have collected some information and it seems that there are two possible solutions. The simplest is to add
ng-app
in your body tag as follows:<body ng-app>
That would make protractor understand that it is in an angular project.
The other solution would be to add the node_modules typescript path to the root of the typescript in your application configuration like so:
this would go in the file
tsconfig.e2e.json