Jeanluca Scaljeri
Jeanluca Scaljeri

Reputation: 29109

Protractor starts Firefox but doesn't run any tests

If I run protractor agains Firefox, Firefox is started and a blank tab is shown. Which is all I get (no specs are executed). After a while I get the following error:

WebDriverError: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
"}],"targetPlatforms":[],"seen":true}
...

Now, I've also written a script which uses selenium webdriver directly, which works like a charm with FF. So, the problem must be protractor specific I would say!

So, here is my protractor config file:

require('babel-core/register'); // Spec files are in ES2015

exports.config = {
    framework: 'jasmine2',
    capabilities: {
        browserName: 'firefox'
    },
    specs: ['some.spec.js']
};

It doesn't matter if I start webdriver-manager and geckodriver I always end up with a blank tab. Any suggestions what I might be doing wrong here?

Some more details:

"babel-cli": "^6.18.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-0": "^6.16.0",
"protractor": "^5.0.0",
"selenium-webdriver": "^3.0.1"

FF 50 Mac, macOS Sierra 10.12.2

Upvotes: 2

Views: 453

Answers (1)

craig
craig

Reputation: 5016

We recommend using Firefox 47. If you are on Protractor 5.0.0, you will need an additional capability to disable marionette. Disabling marionette will let you use the Firefox legacy driver:

capabilities: {
  browserName: 'firefox',
  marionette: false
}

Geckodriver is currently downloaded but is not being used by Protractor due to FF 48+ errors / selenium standalone server errors. Check out the Protractor CHANGELOG. We will update this with recommended FF versions when it becomes more stable.

Upvotes: 2

Related Questions