protractor icon indicating copy to clipboard operation
protractor copied to clipboard

issue with webdriver upgrade in Protractor 3.0 -- (undefined:1190 vlog(2, () => this + ' scheduling notifications', this);)

Open cstraynor opened this issue 11 years ago • 2 comments

Upgraded to Protractor 3.0 and now I receive the below error every time the tests try to run.

$ protractor

[launcher] Process exited with error code 1 undefined:1190 vlog(2, () => this + ' scheduling notifications', this); ^ SyntaxError: Unexpected token ) at goog.loadModuleFromSource_ (/Users/christraynor/Documents/BitBucket/Angular2-seed/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1123:19) at Object.goog.loadModule (/Users/christraynor/Documents/BitBucket/Angular2-seed/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1085:46) at /Users/christraynor/Documents/BitBucket/Angular2-seed/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1:6 at Object.exports.runInContext (vm.js:64:17) at Object.Context.closure.goog.retrieveAndExecModule_ (/Users/christraynor/Documents/BitBucket/Angular2-seed/node_modules/protractor/node_modules/selenium-webdriver/base.js:135:8) at :1:6 at Object.exports.runInContext (vm.js:64:17) at Context.closure.closure.vm.createContext.CLOSURE_IMPORT_SCRIPT (/Users/christraynor/Documents/BitBucket/Angular2-seed/node_modules/protractor/node_modules/selenium-webdriver/base.js:104:12) at Object.goog.importScript (/Users/christraynor/Documents/BitBucket/Angular2-seed/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:879:9) at Object.goog.importModule (/Users/christraynor/Documents/BitBucket/Angular2-seed/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:900:14) npm ERR! Test failed. See above for more details.

cstraynor avatar Nov 18 '15 19:11 cstraynor

Protractor 3.0 is only compatible with node 4.0+

See https://github.com/angular/protractor/blob/master/CHANGELOG.md#300

sjelin avatar Nov 18 '15 19:11 sjelin

Good to know. Upgrading node fixed it. Thanks!

cstraynor avatar Nov 18 '15 19:11 cstraynor