Protractor test on phantomjs with the use of selenium standalone jar,

I am trying to run protractor tests on phantomjs with the use of selenium-standalone-server.jar but it is giving me such error.I am running this in ubuntu 14.04.

Here is my protractor-config.js file

exports.config = { framework: 'cucumber', seleniumServerJar: 'node_modules/selenium-standalone/.selenium/2.43.1/server.jar', specs: [ 'specs/cucumber/*.feature' ], baseUrl: '', cucumberOpts: { format: 'pretty' }, capabilities: { browserName: 'phantomjs', 'phantomjs.binary.path': 'node_modules/phantomjs/bin/phantomjs', shardTestFiles: true, maxInstances: 3 } };


Running "protractor:phantom" (protractor) task Starting selenium standalone server... Selenium standalone server started at PROJECT_DIR/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:148 var session = flow.execute(function() { ^ UnknownError: The driver is not executable: PROJECT_DIR/node_modules/phantomjs/bin/phantomjs at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> at <anonymous> ==== async task ==== WebDriver.createSession() at Function.webdriver.WebDriver.acquireSession_ (PROJECT_DIR/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:148:22) at Function.webdriver.WebDriver.createSession (PROJECT_DIR/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:122:30) at Builder.build (PROJECT_DIR/node_modules/protractor/node_modules/selenium-webdriver/builder.js:293:22) at LocalDriverProvider.getDriver (PROJECT_DIR/node_modules/protractor/lib/driverProviders/local.js:121:9) at PROJECT_DIR/node_modules/protractor/lib/runner.js:238:41 at _fulfilled (PROJECT_DIR/node_modules/protractor/node_modules/q/q.js:797:54) at self.promiseDispatch.done (PROJECT_DIR/node_modules/protractor/node_modules/q/q.js:826:30) at Promise.promise.promiseDispatch (PROJECT_DIR/node_modules/protractor/node_modules/q/q.js:759:13) at PROJECT_DIR/node_modules/protractor/node_modules/q/q.js:573:44 >> Fatal error: protractor exited with code: 1

Please help me to solve this.


Its to late but this is my protractor.config.js

exports.config = { baseUrl: 'http://localhost:9001', seleniumAddress: '', framework: 'cucumber', specs: [ 'test/features/*.feature' ], capabilities: { browserName: 'phantomjs', 'phantomjs.binary.path': './node_modules/karma-phantomjs-launcher/node_modules/phantomjs/bin/phantomjs', 'phantomjs.cli.args': '--web-security=false --debug=true --webdriver --webdriver-logfile=webdriver.log --webdriver-loglevel=DEBUG', version: '', platform: 'ANY' }, cucumberOpts: { require: 'test/features/steps/*_step.js', format: 'pretty' } }


  • Run multiple instances of nightwatch at browserstack
  • Selendroid is not working?
  • Nodejs Protractor + Jasmine + JUnitXmlReporter runs the test but without waiting for the browser
  • PerfJankie:Error: The environment you requested is not available
  • What are the methods we can use to wait for an angular site to be loaded in order to test it with pr
  • Fantom-text in jTextField. How?
  • Headless protractor not sharding tests
  • print_r() adds properties to DateTime objects [duplicate]
  • Selenium JS add cookie to request
  • Download Excel Files with RSelenium
  • How to test chat web app
  • How do I retrieve the text in a table column using Selenium RC?
  • How to capture or listen to browser notifications?
  • Can you use multiple instances of Edge on a Selenium Grid Node?
  • Easiest way to covert part of a byte array to uint16
  • Implementing HMAC-SHA256 for Keybase in Javascript
  • How to not need user input for install.packages(type = “both”)
  • Edit assembly language code in Visual Studio while stepping through each statement
  • make EF map byte array to binary instead of varbinary
  • Getting errors while using neuralnet function
  • insert a picture into database(sqlite) with java code. what should i do?
  • Insertion large number of Entities into SQL Server 2012 [duplicate]
  • Backward compatibility of Python 3.5 for external modules
  • Hibernate to update table schema
  • Center align outputs in ipython notebook
  • Selenium to click on a javascript button corresponding to a text
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Abort upload large uploads after reading headers
  • ActionScript 2 vs ActionScript 3 performance
  • How do you troubleshoot character encoding problems?
  • How can I estimate amount of memory left with calling System.gc()?
  • Apache 2.4 - remove | delete | uninstall
  • Is there a mandatory requirement to switch app.yaml?
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Busy indicator not showing up in wpf window [duplicate]
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • How can I use `wmic` in a Windows PE script?