Protractor - Unable to run protractor tests
There is a typo inside onPrepare()
:
onPrepare: function() { browser.driver.manage().window().maximize(); require('jasmine-reporters'); jasmine.getEnv().addReporter( new jasmine.JUnitXmlReporter('xmloutput', true. true)); // HERE^},
You meant instead:
jasmine.getEnv().addReporter( new jasmine.JUnitXmlReporter('xmloutput', true, true));
Error: TypeError: undefined is not a function at at Object.exports.run (C:\Users\AppData\Roaming\npm\node_modules\protractor\lib\frameworks\jasmine.js:6
The error is from the library. I think you might missed some dependencies that the library requires.
Removing this line fixed a similar problem for me:
seleniumAddress: 'http://localhost:4444/wd/hub',