Search code examples
angularjstestingprotractorwebstormangularjs-e2e

protractor integration with IDE


I have configured webstorm for using protractor, but when I launch my test suit, it does not recognize this param from my config file:

// conf.js
exports.config = {
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['spec.js'],
    capabilities: {
        browserName: 'firefox'
    }
};

In console it says serving "conf.js" at http:// 127.0.0.1:8080. What could be the reason for that? Why it does not use address for my selenium?

enter image description here

enter image description here

enter image description here

enter image description here

Here is the configuration I have. But it does not use correct URL


Solution

  • The JavaScript file parameter in the webstrom / intellij windown has to point to Protractor's cli.js file under node_modules/protractor