I have written many E2E tests using protractor running firefox and chrome and everything works fine, however when I try to use phantomjs so that we can get them to work on our CI server they fail with the line:
UnknownError: Error communicating with the remote browser. It may have died.
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
System info: host: 'referenemesimac.home', ip: '192.168.1.67', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.4', java.version: '1.6.0_65'
Driver info: driver.version: EventFiringWebDriver
Has anyone come to this before? Here is my protractor.conf.js
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
'browserName': 'phantomjs'
},
onPrepare: function () {
var width = 1440;
var height = 900;
browser.driver.manage().window().setSize(width, height);
},
specs: ['protractor_specs/**/*.js'],
baseUrl: 'http://localhost:3000',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
},
};
source
share