Protractor does not automatically launch PhantomJS

I use protractor(with grunt-protractor-runnerto run E2E Angular tests), but I cannot run PhantomJS automatically.

My conveyor configuration is as follows:

exports.config = {
    //seleniumAddress: "http://localhost:9515",
    specs: [
        'static_src/test/spec/*.js'
    ],


    capabilities: {
        'browserName': 'phantomjs',
        'phantomjs.binary.path':'./node_modules/phantomjs/bin/phantomjs',
        'phantomjs.cli.args':['--logfile=phantom.log', '--loglevel=DEBUG']
    }
}

I understand that with this configuration, it protractorautomatically deploys the PhantomJS instance (found on phantomjs.binary.path), runs the tests against it, exchanging directly using the WebDriver protocol (so there is no need for a Selenium server) and then crush the PhantomJS instance.

Given that

  • Is this what I described above expected behavior?
  • Is there anything I need to add to the configuration for this to happen?
+4
source share
1

Selenium. webdriver-manager protract.conf.js, jar, Protractor .

jar , :

seleniumServerJar: 
  'node_modules/selenium-server/lib/runner/selenium-server-standalone-2.38.0.jar'

, selenium, . , , , Protractor.

+1

Source: https://habr.com/ru/post/1534902/


All Articles