Tuesday, 15 June 2010

angularjs - Protractor failing on Windows with "cannot call method 'forEach' of null" -



angularjs - Protractor failing on Windows with "cannot call method 'forEach' of null" -

if run angular phone catalog tutorial on windows right now, error:

d:\dev\angular-phonecat\node_modules\protractor\node_modules\selenium net\index.js:48 interfaces[key].foreach(function(ipaddress) { ^ typeerror: cannot phone call method 'foreach' of null @ getaddress

basically: selenium-webdriver intentionally looking @ darwin , linux systems find local loopback address (typically 127.0.0.1). it's not working on windows.

the workaround alter "chromeonly" setting in test/protractor-conf.js true false:

exports.config = { allscriptstimeout: 11000, seleniumaddress: 'http://localhost:4444/wd/hub', chromedriver: 'c:\\users\\admin\\appdata\\roaming\\npm\\node_modules\\protractor\\selenium', chromeonly: false, <-- alternative "true"

this condensed work @

https://github.com/angular/protractor/issues/906

angularjs protractor

No comments:

Post a Comment