Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

1.4.0 does not seem to work with PhantomJS #1512

@gweax

Description

@gweax

I know, PhantomJS is not officially supported by Protractor, but since everything worked in 1.3.1 I decided to report this issue nonetheless. Feel free to close it as invalid (a short notice on the browser-setup page of the docs would be nice, though).

My protractor tests started to fail with 1.4.0 with this stacktrace:

Starting selenium standalone server...
Selenium standalone server started at http://172.31.195.6:53427/wd/hub
[launcher] Error: UnknownError: org.openqa.selenium.browserlaunchers.Proxies
    at new bot.Error (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113:18)
    at Object.bot.response.checkResponse (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)
    at /Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:152:24
    at /Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15
    at webdriver.promise.ControlFlow.runInNewFrame_ (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1654:20)
    at notify (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:465:12)
    at notifyAll (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:442:7)
    at resolve (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:420:7)
    at fulfill (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:535:5)
    at /Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15
==== async task ====
WebDriver.createSession()
    at Function.webdriver.WebDriver.acquireSession_ (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:149:22)
    at Function.webdriver.WebDriver.createSession (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:123:30)
    at Builder.build (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/builder.js:294:22)
    at LocalDriverProvider.getDriver (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/lib/driverProviders/local.js:121:9)
    at /Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/lib/runner.js:222:41
    at _fulfilled (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/q/q.js:797:54)
    at self.promiseDispatch.done (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/q/q.js:826:30)
    at Promise.promise.promiseDispatch (/Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/q/q.js:759:13)
    at /Users/matthias/workspace/my-app/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/q/q.js:573:44

I use grunt-protractor-runner, as you can see. My e2e.conf.js looks like that:

exports.config = {
    "capabilities": {
        "browserName": "phantomjs",
        "phantomjs.binary.path": require("phantomjs").path,
        "phantomjs.ghostdriver.cli.args": ["--loglevel=DEBUG"]
    },
    "specs": [
        "e2e/**/*.js"
    ]
};

When using Chrome as a Browser, everything works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions