angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Protractor test is not starting on Firefox #886

Closed acostaf closed 10 years ago

acostaf commented 10 years ago

I have got a set of test that run fine on chrome but when I change the capabilities browserName from chrome to firefox don't even get a error info

Before capabilities: { 'browserName': 'chrome', 'chromeOptions': { args: ['--test-type', 'show-fps-counter=true'] } },

//After capabilities: { 'browserName': 'firefox' },

juliemr commented 10 years ago

Silly question, but do you have firefox installed on your machine? What sort of output do you get?

acostaf commented 10 years ago

Hi Julie

I do, I have got version 29 installed, the funny thing that I am not getting any error, just firefox passed and then returns.

juliemr commented 10 years ago

Any output from the selenium standalone?

acostaf commented 10 years ago

Nothing that is the funny thing, does not do anything

acostaf commented 10 years ago

Hi

I found the problem with firefox, basically my protractor config was not using any webdriver server setting but was using the default server, this way was quite handy since did not have start selenium by my self

In order to fix this issue I am starting selenium server by myself specifying firefox and chrome drivers

java -jar "C:\Users\%USERNAME%\AppData\Roaming\npm\node_modules\protractor\selenium\selenium-server-standalone-2.42.1.jar" -Dwebdriver.chrome.driver="C:\Users\%USERNAME%\AppData\Roaming\npm\node_modules\protractor\selenium\chromedriver.exe" -Dwebdriver.firefox.bin="C:\Users\%USERNAME%\AppData\Local\Mozilla Firefox\firefox.exe"

juliemr commented 10 years ago

Ah, OK. The problem was that your firefox is not in the default location (as described on the FirefoxDriver page). Glad you got it sorted out!

calystoramesh commented 10 years ago

I have a same problem , firefox is installed in the default location "c:\Program Files\Mozilla Firefox\firefox.exe" in windows XP,

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

Using the selenium server at http://127.0.0.1:4444/wd/hub [launcher] Running 1 instances of WebDriver[launcher] firefox passed

Process finished with exit code 1

my test script is not execute. Please help me

note : In chrome it's working fine

acostaf commented 10 years ago

Selenium console should tell you what is going in on with it, try to start you own selenium in order to see selenium error messages java -jar "C:\Users\%USERNAME%\AppData\Roaming\npm\node_modules\protractor\selenium\selenium-server-standalone-2.42.1.jar" -Dwebdriver.firefox.bin="c:\Program Files\Mozilla Firefox\firefox.exe"

nareshsurya commented 8 years ago

When I run my protractor scripts on Firefox, firefox window is opened but failed to open the target URL and getting the following error: sing FirefoxDriver directly... [launcher] Running 1 instances of WebDriver

c:\node_modules\protractor\node_modules\selenium-webdriver\http\util.js:89 Error('Timed out waiting for the WebDriver server at ' + url)); ^ Error: Timed out waiting for the WebDriver server at http://127.0.0.1:49587/hub at Error (native) at onResponse (c:\node_modules\protractor\node_modules\selenium-webdriver\http\util.js:89:11) at c:\node_modules\protractor\node_modules\selenium-webdriver\http\util.js:44:21 at c:\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\http\http.js:140:5 at ClientRequest. (c:\node_modules\protractor\node_modules\selenium-webdriver\http\index.js:174:7) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketErrorListener (_httpclient.js:258:9) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) From: Task: WebDriver.createSession() at Function.webdriver.WebDriver.acquireSession (c:\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:157:22) at Function.webdriver.WebDriver.createSession (c:\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:131:30) at new Driver (c:\node_modules\protractor\node_modules\selenium-webdriver\firefox\index.js:278:36) at [object Object].DirectDriverProvider.getNewDriver (c:\node_modules\protractor\lib\driverProviders\direct.js:74:16) at [object Object].Runner.createBrowser (c:\node_modules\protractor\lib\runner.js:190:37) at c:\node_modules\protractor\lib\runner.js:280:21 at _fulfilled (c:\node_modules\protractor\node_modules\q\q.js:834:54) at self.promiseDispatch.done (c:\node_modules\protractor\node_modules\q\q.js:863:30) at Promise.promise.promiseDispatch (c:\node_modules\protractor\node_modules\q\q.js:796:13) at c:\node_modules\protractor\node_modules\q\q.js:556:49 [launcher] Process exited with error code 1

Process finished with exit code 1

Can someone please help me out with this?

Regards, Naresh Surya

b-mcrae commented 8 years ago

Hi @nareshsurya!

I recently encountered the same error as you. The quick fix solution for me was to uninstall Firefox 47 and downgrade to Firefox 36. You can find older versions of Firefox here: https://ftp.mozilla.org/pub/firefox/releases/

I'm using selenium-webdriver 2.47.0. I'm not sure which is the latest version of Firefox that is supported, but just wanted to give you a quick fix at the moment! Perhaps someone can please expand upon this!

Thank you!

freakaziod210 commented 8 years ago

@b-mcrae I love you!! I have been stumped on this for a few hours. My tests were working fine yesterday but when I ran them today they weren't. I guess Firefox updated somewhere in between.

pyVarad commented 8 years ago

The firefox browser pops up but there is no response after that. The url doesn't get updated nor anything. After the timeout it would close the browser and tests abort. Please find below the logs. Any suggestion would be helpful.

Steps followed.

  1. Installed webdriver manager
  2. Installed npm install -g protractor@latest protractor version is 4.0.3

/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113 var template = new Error(this.message); ^ UnknownError: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: e6fd}","syncGUID":"yAyV50OlpCB0","location":"app-global","version":"48.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\Program Files (x86)\Mozilla Firefox\browser\extensions{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1470835793469,"updateDate":1470835793469,"applyBackgroundUpdates":1,"skinnable":true,"size":21899,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"48.0","maxVersion":"48.0"}],"targetPlatforms":[],"seen":true} 1470836289821 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd} 1470836289822 DeferredSave.extensions.json DEBUG Save changes 1470836289822 addons.xpi DEBUG Updating database with changes to installed add-ons 1470836289822 addons.xpi-utils DEBUG Updating add-on states 1470836289823 addons.xpi-utils DEBUG Writing add-ons list 1470836289826 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi 1470836289826 addons.xpi DEBUG Calling bootstrap method startup on e10srollout@mozilla.org version 1.0 1470836289827 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi 1470836289827 addons.xpi DEBUG Calling bootstrap method startup on firefox@getpocket.com version 1.0.4 1470836289828 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\loop@mozilla.org.xpi 1470836289829 addons.xpi DEBUG Calling bootstrap method startup on loop@mozilla.org version 1.4.3 1470836289863 addons.manager DEBUG Registering shutdown blocker for XPIProvider 1470836289864 addons.manager DEBUG Provider finished startup: XPIProvider 1470836289864 addons.manager DEBUG Starting provider: LightweightThemeManager 1470836289864 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager 1470836289864 addons.manager DEBUG Provider finished startup: LightweightThemeManager 1470836289865 addons.manager DEBUG Starting provider: GMPProvider 1470836289878 addons.manager DEBUG Registering shutdown blocker for GMPProvider 1470836289878 addons.manager DEBUG Provider finished startup: GMPProvider 1470836289879 addons.manager DEBUG Starting provider: PluginProvider 1470836289879 addons.manager DEBUG Registering shutdown blocker for PluginProvider 1470836289879 addons.manager DEBUG Provider finished startup: PluginProvider 1470836289880 addons.manager DEBUG Completed startup sequence 1470836290771 addons.manager DEBUG Starting provider: 1470836290771 addons.manager DEBUG Registering shutdown blocker for 1470836290772 addons.manager DEBUG Provider finished startup: 1470836290773 DeferredSave.extensions.json DEBUG Starting write 1470836291099 addons.repository DEBUG No addons.json found. 1470836291100 DeferredSave.addons.json DEBUG Save changes 1470836291109 DeferredSave.addons.json DEBUG Starting timer 1470836291152 addons.manager DEBUG Starting provider: PreviousExperimentProvider 1470836291152 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider 1470836291152 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider 1470836291157 DeferredSave.extensions.json DEBUG Write succeeded 1470836291157 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17 1470836291161 DeferredSave.addons.json DEBUG Starting write 1470836291196 DeferredSave.addons.json DEBUG Write succeeded

at new bot.Error (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113:18)
at Object.bot.response.checkResponse (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)
at /usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:158:24
at [object Object].promise.ControlFlow.runInFrame_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
at [object Object].promise.Callback_.goog.defineClass.notify (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)
at [object Object].promise.Promise.notify_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)
at Array.forEach (native)
at Object.goog.array.forEach (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)
at [object Object].promise.Promise.notifyAll_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:552:16)
at [object Object].goog.async.run.processWorkQueue [as _onTimeout] (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:125:21)

From: Task: WebDriver.createSession() at Function.webdriver.WebDriver.acquireSession_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:155:22) at Function.webdriver.WebDriver.createSession (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:129:30) at [object Object].Builder.build (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/builder.js:416:22) at [object Object].DriverProvider.getNewDriver (/usr/lib/node_modules/protractor/lib/driverProviders/driverProvider.js:38:7) at [object Object].Runner.createBrowser (/usr/lib/nodemodules/protractor/lib/runner.js:180:37) at driverprovider.setupEnv.then.then.then.frameworkPath (/usr/lib/node_modules/protractor/lib/runner.js:256:21) at _fulfilled (/usr/lib/node_modules/protractor/node_modules/q/q.js:797:54) at self.promiseDispatch.done (/usr/lib/node_modules/protractor/node_modules/q/q.js:826:30) at Promise.promise.promiseDispatch (/usr/lib/node_modules/protractor/node_modules/q/q.js:759:13) at /usr/lib/node_modules/protractor/node_modules/q/q.js:525:49 [launcher] Process exited with error code 1

ahmed-abdulmoniem commented 8 years ago

Any solution to the last error? I am experiencing the same!

m-ajitabh commented 8 years ago

Protractor is running on Firefox

I am using FireFox v44.01, with following settings:-

protractor.conf.js capabilities: { 'browserName': 'chrome', chromeOptions: { args: ['disable-extensions'] } , "browserName": "firefox", "firefoxbinary": "C:/Program Files/Mozilla Firefox/firefox", "binary": "C:/Program Files/Mozilla Firefox/firefox" },

and its running fine with Firefox. before starting with Firefox, disable the auto update of Firefox.

kathy-ems commented 8 years ago

What would be the equivalent of this on a mac?

"browserName": "firefox",
"firefox_binary": "C:/Program Files/Mozilla Firefox/firefox",
"binary_": "C:/Program Files/Mozilla Firefox/firefox" 

I tried, but it didn't work

    firefox_binary: '../../../../../Applications/firefox_v34',
    binary_: '../../../../../Applications/firefox_v34',

Error

[firefox #2]   var template = new Error(this.message);
[firefox #2]                  ^
[firefox #2] UnknownError: Specified firefox binary location does not exist or is not a real file: ../../../../../../Applications/firefox_v34.app
m-ajitabh commented 8 years ago

Locate where an executable of firefox is coming from the filesystem and write the fullpath. The way you wrote the path, it seems fuzzy. So search on internet for the binary location of firefox on mac and fix your problem.

7stud commented 7 years ago

Mac OSX 10.10.5 Firefox 50.1.0 (In whatever location the installer put it.)

I'm having the same problem with Firefox launching, never navigating to the url, not running any tests, then timing out. Everything works fine in Chrome 55.0.2883.95 (64-bit).

I'm following the protractor tutorial, and Step 3 asks me to add Firefox to conf.js:

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

Here is the output when I do $ webdriver-manager start:

~/protractor_programs$ webdriver-manager start
[06:39:49] I/start - java -Dwebdriver.chrome.driver=/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.26 -Dwebdriver.gecko.driver=/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.12.0 -jar /Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar -port 4444
[06:39:49] I/start - seleniumProcess.pid: 63927
06:39:49.859 INFO - Launching a standalone Selenium Server
06:39:49.892 INFO - Java: Oracle Corporation 25.40-b25
06:39:49.893 INFO - OS: Mac OS X 10.10.5 x86_64
06:39:49.903 INFO - v2.53.1, with Core v2.53.1. Built from revision a36b8b1
06:39:49.977 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC
06:39:49.978 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC
06:39:49.978 INFO - Driver class not found: com.opera.core.systems.OperaDriver
06:39:49.978 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
06:39:49.980 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
06:39:49.980 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
06:39:50.045 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
06:39:50.045 INFO - Selenium Server is up and running

In the output above, there is this:

registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC
06:39:49.978 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC

I don't know if that's causing a problem. Below is the output in another terminal window when I try to run the tests:

~/protractor_programs/1proj$ protractor conf.js
(node:63929) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[06:47:38] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
[06:47:38] I/launcher - Running 1 instances of WebDriver
[06:48:23] E/launcher - Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
illa","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1484458673000,"updateDate":1484458673000,"applyBackgroundUpdates":1,"skinnable":true,"size":6856,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"50.1.0","maxVersion":"50.1.0"}],"targetPlatforms":[],"seen":true}
1484660859137   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1484660859138   DeferredSave.extensions.json    DEBUG   Save changes
1484660859138   addons.xpi  DEBUG   Updating database with changes to installed add-ons
1484660859138   addons.xpi-utils    DEBUG   Updating add-on states
1484660859139   addons.xpi-utils    DEBUG   Writing add-ons list
1484660859140   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1484660859140   addons.xpi  DEBUG   Calling bootstrap method startup on aushelper@mozilla.org version 1.0
1484660859141   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1484660859141   addons.xpi  DEBUG   Calling bootstrap method startup on e10srollout@mozilla.org version 1.5
1484660859141   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1484660859142   addons.xpi  DEBUG   Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1484660859143   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1484660859144   addons.xpi  DEBUG   Calling bootstrap method startup on webcompat@mozilla.org version 1.0
1484660859145   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1484660859146   addons.manager  DEBUG   Provider finished startup: XPIProvider
1484660859146   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1484660859146   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1484660859147   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1484660859148   addons.manager  DEBUG   Starting provider: GMPProvider
1484660859156   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1484660859157   addons.manager  DEBUG   Provider finished startup: GMPProvider
1484660859157   addons.manager  DEBUG   Starting provider: PluginProvider
1484660859157   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1484660859157   addons.manager  DEBUG   Provider finished startup: PluginProvider
1484660859158   addons.manager  DEBUG   Completed startup sequence
1484660859454   addons.manager  DEBUG   Starting provider: <unnamed-provider>
1484660859454   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
1484660859455   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
1484660859461   DeferredSave.extensions.json    DEBUG   Starting write
1484660859565   addons.repository   DEBUG   No addons.json found.
1484660859566   DeferredSave.addons.json    DEBUG   Save changes
1484660859570   DeferredSave.addons.json    DEBUG   Starting timer
1484660859592   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
1484660859592   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
1484660859592   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
1484660859600   DeferredSave.extensions.json    DEBUG   Write succeeded
1484660859601   addons.xpi-utils    DEBUG   XPI Database saved, setting schema version preference to 17
1484660859624   DeferredSave.addons.json    DEBUG   Starting write
1484660859639   DeferredSave.addons.json    DEBUG   Write succeeded
2017-01-17 06:47:43.404 firefox-bin[63930:2868422] -deltaZ is deprecated for NSEventTypeMagnify.  Please use -magnification.

[06:48:23] E/launcher - WebDriverError: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
illa","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1484458673000,"updateDate":1484458673000,"applyBackgroundUpdates":1,"skinnable":true,"size":6856,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"50.1.0","maxVersion":"50.1.0"}],"targetPlatforms":[],"seen":true}
1484660859137   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1484660859138   DeferredSave.extensions.json    DEBUG   Save changes
1484660859138   addons.xpi  DEBUG   Updating database with changes to installed add-ons
1484660859138   addons.xpi-utils    DEBUG   Updating add-on states
1484660859139   addons.xpi-utils    DEBUG   Writing add-ons list
1484660859140   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1484660859140   addons.xpi  DEBUG   Calling bootstrap method startup on aushelper@mozilla.org version 1.0
1484660859141   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1484660859141   addons.xpi  DEBUG   Calling bootstrap method startup on e10srollout@mozilla.org version 1.5
1484660859141   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1484660859142   addons.xpi  DEBUG   Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1484660859143   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1484660859144   addons.xpi  DEBUG   Calling bootstrap method startup on webcompat@mozilla.org version 1.0
1484660859145   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1484660859146   addons.manager  DEBUG   Provider finished startup: XPIProvider
1484660859146   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1484660859146   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1484660859147   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1484660859148   addons.manager  DEBUG   Starting provider: GMPProvider
1484660859156   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1484660859157   addons.manager  DEBUG   Provider finished startup: GMPProvider
1484660859157   addons.manager  DEBUG   Starting provider: PluginProvider
1484660859157   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1484660859157   addons.manager  DEBUG   Provider finished startup: PluginProvider
1484660859158   addons.manager  DEBUG   Completed startup sequence
1484660859454   addons.manager  DEBUG   Starting provider: <unnamed-provider>
1484660859454   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
1484660859455   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
1484660859461   DeferredSave.extensions.json    DEBUG   Starting write
1484660859565   addons.repository   DEBUG   No addons.json found.
1484660859566   DeferredSave.addons.json    DEBUG   Save changes
1484660859570   DeferredSave.addons.json    DEBUG   Starting timer
1484660859592   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
1484660859592   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
1484660859592   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
1484660859600   DeferredSave.extensions.json    DEBUG   Write succeeded
1484660859601   addons.xpi-utils    DEBUG   XPI Database saved, setting schema version preference to 17
1484660859624   DeferredSave.addons.json    DEBUG   Starting write
1484660859639   DeferredSave.addons.json    DEBUG   Write succeeded
2017-01-17 06:47:43.404 firefox-bin[63930:2868422] -deltaZ is deprecated for NSEventTypeMagnify.  Please use -magnification.

    at Object.checkLegacyResponse (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:505:15)
    at parseHttpResponse (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:509:13)
    at doSend.then.response (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:440:13)
    at process._tickCallback (internal/process/next_tick.js:103:7)
From: Task: WebDriver.createSession()
    at Function.createSession (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:777:24)
    at Function.createSession (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/selenium-webdriver/firefox/index.js:640:55)
    at createDriver (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/selenium-webdriver/index.js:167:33)
    at Builder.build (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/selenium-webdriver/index.js:629:16)
    at Hosted.getNewDriver (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/built/driverProviders/driverProvider.js:49:33)
    at Runner.createBrowser (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/built/runner.js:163:43)
    at driverprovider_.setupEnv.then (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/built/runner.js:241:29)
    at _fulfilled (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/Users/7stud/.nvm/versions/node/v7.4.0/lib/node_modules/protractor/node_modules/q/q.js:796:13)
[06:48:23] E/launcher - Process exited with error code 199
~/protractor_programs/1proj$ 

m-ajitabh's solution didn't work for me. You can get the path to your firefox executable this way:

  1. In Finder go into the Applications folder.
  2. Right click on Firefox.app and choose Show Package Contents.
  3. Click on the disclosure triangle for the Contents Folder.
  4. Click on the disclosure triangle for the MacOS folder.
  5. In the MacOS folder, the firefox file with the black screen icon to the left is the executable. You can right click on it and choose Get Info to confirm that. (There is also a firefox-bin executable).
  6. If the firefox file is selected, the full path is shown on the bottom of the Finder window. Rather than typing all that out by hand, you can drag the firefox file onto a terminal window, and when you release the full path will be entered at the point of the cursor. You can then copy the path and paste it in another file wherever you need it. That's a handy trick that I've been using for years.

I didn't expect m-ajitabh's solution to work because selenium has no problem launching Firefox, so it knows where the firefox executable is located--selenium just seems incapable of driving Firefox. I also checked the selenium docs for the allowed keys in capabilities, so I tried this:

exports.config = {
  framework: 'jasmine',
  seleniumAddress: 'http://localhost:4444/wd/hub',
  specs: ['spec.js'],

  capabilities: {
    browserName: 'firefox',
    version: '50.1.0',
    platform: 'MAC',
    firefox_binary: '/Applications/Firefox.app/Contents/MacOS/firefox'
  }
}

...and I got the same result.

I just noticed there was some additional output in the $ webdriver-manager start window:

08:17:38.703 INFO - Executing: [new session: Capabilities [{count=1, browserName=firefox, moz:firefoxOptions={binary=/Applications/Firefox.app/Contents/MacOS/firefox}, version=50.1.0, platform=MAC}]])
08:17:38.718 INFO - Creating a new session for Capabilities [{count=1, browserName=firefox, moz:firefoxOptions={binary=/Applications/Firefox.app/Contents/MacOS/firefox}, version=50.1.0, platform=MAC}]
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
con.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1484458673000,"updateDate":1484458673000,"applyBackgroundUpdates":1,"skinnable":true,"size":6856,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"50.1.0","maxVersion":"50.1.0"}],"targetPlatforms":[],"seen":true}
1484666259655   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1484666259656   DeferredSave.extensions.json    DEBUG   Save changes
1484666259656   addons.xpi  DEBUG   Updating database with changes to installed add-ons
1484666259656   addons.xpi-utils    DEBUG   Updating add-on states
1484666259657   addons.xpi-utils    DEBUG   Writing add-ons list
1484666259658   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1484666259658   addons.xpi  DEBUG   Calling bootstrap method startup on aushelper@mozilla.org version 1.0
1484666259658   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1484666259659   addons.xpi  DEBUG   Calling bootstrap method startup on e10srollout@mozilla.org version 1.5
1484666259659   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1484666259660   addons.xpi  DEBUG   Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1484666259660   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1484666259661   addons.xpi  DEBUG   Calling bootstrap method startup on webcompat@mozilla.org version 1.0
1484666259662   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1484666259663   addons.manager  DEBUG   Provider finished startup: XPIProvider
1484666259663   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1484666259663   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1484666259664   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1484666259664   addons.manager  DEBUG   Starting provider: GMPProvider
1484666259671   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1484666259672   addons.manager  DEBUG   Provider finished startup: GMPProvider
1484666259672   addons.manager  DEBUG   Starting provider: PluginProvider
1484666259672   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1484666259672   addons.manager  DEBUG   Provider finished startup: PluginProvider
1484666259673   addons.manager  DEBUG   Completed startup sequence
1484666260372   DeferredSave.extensions.json    DEBUG   Starting write
1484666260380   addons.manager  DEBUG   Starting provider: <unnamed-provider>
1484666260380   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
1484666260381   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
1484666260497   addons.repository   DEBUG   No addons.json found.
1484666260498   DeferredSave.addons.json    DEBUG   Save changes
1484666260503   DeferredSave.addons.json    DEBUG   Starting timer
1484666260541   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
1484666260541   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
1484666260541   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
1484666260554   DeferredSave.extensions.json    DEBUG   Write succeeded
1484666260555   addons.xpi-utils    DEBUG   XPI Database saved, setting schema version preference to 17
1484666260560   DeferredSave.addons.json    DEBUG   Starting write
1484666260581   DeferredSave.addons.json    DEBUG   Write succeeded

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:129)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:91)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:68)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
08:18:24.188 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'XXXsMBP.home', ip: '192.168.1.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_40'
Driver info: driver.version: unknown
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:183)
    at org.openqa.selenium.remote.server.DefaultSession.<init>(DefaultSession.java:119)
    at org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:95)
    at org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:124)
    at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:59)
    at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:1)
    at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:111)
    at org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:79)
    at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:204)
    at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:166)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:680)
    at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:571)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1526)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1479)
    at org.openqa.jetty.http.HttpServer.service(HttpServer.java:920)
    at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
    at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
    at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
    at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
    at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:358)
    at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:537)
Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'XXXsMBP.home', ip: '192.168.1.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_40'
Driver info: driver.version: unknown
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:101)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:68)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:91)
    ... 9 more
Caused by: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/Applications/Firefox.app/Contents/MacOS/firefox-bin) on port 7055; process output follows: 
con.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1484458673000,"updateDate":1484458673000,"applyBackgroundUpdates":1,"skinnable":true,"size":6856,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"50.1.0","maxVersion":"50.1.0"}],"targetPlatforms":[],"seen":true}
1484666259655   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1484666259656   DeferredSave.extensions.json    DEBUG   Save changes
1484666259656   addons.xpi  DEBUG   Updating database with changes to installed add-ons
1484666259656   addons.xpi-utils    DEBUG   Updating add-on states
1484666259657   addons.xpi-utils    DEBUG   Writing add-ons list
1484666259658   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1484666259658   addons.xpi  DEBUG   Calling bootstrap method startup on aushelper@mozilla.org version 1.0
1484666259658   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1484666259659   addons.xpi  DEBUG   Calling bootstrap method startup on e10srollout@mozilla.org version 1.5
1484666259659   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1484666259660   addons.xpi  DEBUG   Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1484666259660   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1484666259661   addons.xpi  DEBUG   Calling bootstrap method startup on webcompat@mozilla.org version 1.0
1484666259662   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1484666259663   addons.manager  DEBUG   Provider finished startup: XPIProvider
1484666259663   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1484666259663   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1484666259664   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1484666259664   addons.manager  DEBUG   Starting provider: GMPProvider
1484666259671   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1484666259672   addons.manager  DEBUG   Provider finished startup: GMPProvider
1484666259672   addons.manager  DEBUG   Starting provider: PluginProvider
1484666259672   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1484666259672   addons.manager  DEBUG   Provider finished startup: PluginProvider
1484666259673   addons.manager  DEBUG   Completed startup sequence
1484666260372   DeferredSave.extensions.json    DEBUG   Starting write
1484666260380   addons.manager  DEBUG   Starting provider: <unnamed-provider>
1484666260380   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
1484666260381   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
1484666260497   addons.repository   DEBUG   No addons.json found.
1484666260498   DeferredSave.addons.json    DEBUG   Save changes
1484666260503   DeferredSave.addons.json    DEBUG   Starting timer
1484666260541   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
1484666260541   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
1484666260541   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
1484666260554   DeferredSave.extensions.json    DEBUG   Write succeeded
1484666260555   addons.xpi-utils    DEBUG   XPI Database saved, setting schema version preference to 17
1484666260560   DeferredSave.addons.json    DEBUG   Starting write
1484666260581   DeferredSave.addons.json    DEBUG   Write succeeded

Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'XXXsMBP.home', ip: '192.168.1.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_40'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:124)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:129)
    ... 14 more
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
con.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1484458673000,"updateDate":1484458673000,"applyBackgroundUpdates":1,"skinnable":true,"size":6856,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"50.1.0","maxVersion":"50.1.0"}],"targetPlatforms":[],"seen":true}
1484666259655   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1484666259656   DeferredSave.extensions.json    DEBUG   Save changes
1484666259656   addons.xpi  DEBUG   Updating database with changes to installed add-ons
1484666259656   addons.xpi-utils    DEBUG   Updating add-on states
1484666259657   addons.xpi-utils    DEBUG   Writing add-ons list
1484666259658   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1484666259658   addons.xpi  DEBUG   Calling bootstrap method startup on aushelper@mozilla.org version 1.0
1484666259658   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1484666259659   addons.xpi  DEBUG   Calling bootstrap method startup on e10srollout@mozilla.org version 1.5
1484666259659   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1484666259660   addons.xpi  DEBUG   Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1484666259660   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1484666259661   addons.xpi  DEBUG   Calling bootstrap method startup on webcompat@mozilla.org version 1.0
1484666259662   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1484666259663   addons.manager  DEBUG   Provider finished startup: XPIProvider
1484666259663   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1484666259663   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1484666259664   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1484666259664   addons.manager  DEBUG   Starting provider: GMPProvider
1484666259671   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1484666259672   addons.manager  DEBUG   Provider finished startup: GMPProvider
1484666259672   addons.manager  DEBUG   Starting provider: PluginProvider
1484666259672   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1484666259672   addons.manager  DEBUG   Provider finished startup: PluginProvider
1484666259673   addons.manager  DEBUG   Completed startup sequence
1484666260372   DeferredSave.extensions.json    DEBUG   Starting write
1484666260380   addons.manager  DEBUG   Starting provider: <unnamed-provider>
1484666260380   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
1484666260381   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
1484666260497   addons.repository   DEBUG   No addons.json found.
1484666260498   DeferredSave.addons.json    DEBUG   Save changes
1484666260503   DeferredSave.addons.json    DEBUG   Starting timer
1484666260541   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
1484666260541   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
1484666260541   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
1484666260554   DeferredSave.extensions.json    DEBUG   Write succeeded
1484666260555   addons.xpi-utils    DEBUG   XPI Database saved, setting schema version preference to 17
1484666260560   DeferredSave.addons.json    DEBUG   Starting write
1484666260581   DeferredSave.addons.json    DEBUG   Write succeeded

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112)
    ... 19 more
08:18:24.197 WARN - Exception: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
con.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1484458673000,"updateDate":1484458673000,"applyBackgroundUpdates":1,"skinnable":true,"size":6856,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"50.1.0","maxVersion":"50.1.0"}],"targetPlatforms":[],"seen":true}
1484666259655   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1484666259656   DeferredSave.extensions.json    DEBUG   Save changes
1484666259656   addons.xpi  DEBUG   Updating database with changes to installed add-ons
1484666259656   addons.xpi-utils    DEBUG   Updating add-on states
1484666259657   addons.xpi-utils    DEBUG   Writing add-ons list
1484666259658   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
1484666259658   addons.xpi  DEBUG   Calling bootstrap method startup on aushelper@mozilla.org version 1.0
1484666259658   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi
1484666259659   addons.xpi  DEBUG   Calling bootstrap method startup on e10srollout@mozilla.org version 1.5
1484666259659   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
1484666259660   addons.xpi  DEBUG   Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1484666259660   addons.xpi  DEBUG   Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/webcompat@mozilla.org.xpi
1484666259661   addons.xpi  DEBUG   Calling bootstrap method startup on webcompat@mozilla.org version 1.0
1484666259662   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1484666259663   addons.manager  DEBUG   Provider finished startup: XPIProvider
1484666259663   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1484666259663   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1484666259664   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1484666259664   addons.manager  DEBUG   Starting provider: GMPProvider
1484666259671   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1484666259672   addons.manager  DEBUG   Provider finished startup: GMPProvider
1484666259672   addons.manager  DEBUG   Starting provider: PluginProvider
1484666259672   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1484666259672   addons.manager  DEBUG   Provider finished startup: PluginProvider
1484666259673   addons.manager  DEBUG   Completed startup sequence
1484666260372   DeferredSave.extensions.json    DEBUG   Starting write
1484666260380   addons.manager  DEBUG   Starting provider: <unnamed-provider>
1484666260380   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
1484666260381   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
1484666260497   addons.repository   DEBUG   No addons.json found.
1484666260498   DeferredSave.addons.json    DEBUG   Save changes
1484666260503   DeferredSave.addons.json    DEBUG   Starting timer
1484666260541   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
1484666260541   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
1484666260541   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
1484666260554   DeferredSave.extensions.json    DEBUG   Write succeeded
1484666260555   addons.xpi-utils    DEBUG   XPI Database saved, setting schema version preference to 17
1484666260560   DeferredSave.addons.json    DEBUG   Starting write
1484666260581   DeferredSave.addons.json    DEBUG   Write succeeded

^C[08:20:43] I/start - Staying alive until the Selenium Standalone process exits
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 127.0.0.1:4444
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
~/protractor_programs/1proj$ 
m-ajitabh commented 7 years ago

Guys, I have clearly mentioned above Firefox browser v44.01. Currently, Protractor supports Firefox browser till v44.0.1, do not use above version. My test environment is Windows not MAC, so guys above settings are for Windows environment.
I don't have a MAC, I can support you theoretically to the MAC users.

heathkit commented 7 years ago

This is an ancient issue, and unrelated to the Firefox woes of the modern era. Please see #3823.

The underlying issue is the version of Selenium that Protractor uses. Protractor 4 uses selenium 2.53, and only supports Firefox 47 or older.

Protractor 5 can work with Firefox 50, but only with selenium 3.0.0-beta4. Also, Firefox 50 has a bug that might affect Protractor testing, so using the 51 beta is recommended. Protractor 5.1 will support using Firefox 51 with directConnect.

m-ajitabh commented 7 years ago

Guys,

Running automation in firefox has some issues with the different versions of different framework. I am running my automation on chrome and it works perfect.

I have also executed my automation suites on firefox, but having older version of firefox there are some bugs with the design of angular js app which I was executing.

I setup the chrome as a base and now I am happy.

I do manual testing on firefox for further test.

Thanks Ajitabh Ranjan Mob: 9430331985

On Sat, Jan 21, 2017 at 1:23 PM, mgiambalvo notifications@github.com wrote:

This is an ancient issue, and unrelated to the Firefox woes of the modern era. Please see #3823 https://github.com/angular/protractor/issues/3823.

The underlying issue is the version of Selenium that Protractor uses. Protractor 4 uses selenium 2.53, and only supports Firefox 47 or older.

Protractor 5 can work with Firefox 50, but only with selenium 3.0.0-beta4. Also, Firefox 50 has a bug that might affect Protractor testing, so using the 51 beta is recommended. Protractor 5.1 will support using Firefox 51 with directConnect.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/angular/protractor/issues/886#issuecomment-274246993, or mute the thread https://github.com/notifications/unsubscribe-auth/AOad5wcRQIzDdsV33zGYnNKGS3rod9aUks5rUbmRgaJpZM4CAL2g .

rahulmr commented 7 years ago

Hello All,

I am having same issue with latest Firefox version 52.0 32bit when I give directConnect: true nothing works seems like 2 firefox tabs are opened and test fails.


[09:54:22] Using gulpfile D:\projects\GIT hub\gulp-protractor fork\example\gulpfile.js
[09:54:22] Starting 'webdriver_update'...
[09:54:24] I/update - chromedriver: file exists D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\node_modules\webdriver
-manager\selenium\chromedriver_2.28.zip
[09:54:24] I/update - chromedriver: unzipping chromedriver_2.28.zip
[09:54:24] I/update - chromedriver: chromedriver_2.28.exe up to date
[09:54:24] I/update - selenium standalone: file exists D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\node_modules\we
bdriver-manager\selenium\selenium-server-standalone-3.3.1.jar
[09:54:24] I/update - selenium standalone: selenium-server-standalone-3.3.1.jar up to date
[09:54:26] I/update - geckodriver: file exists D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\node_modules\webdriver-
manager\selenium\geckodriver-v0.15.0.zip
[09:54:26] I/update - geckodriver: unzipping geckodriver-v0.15.0.zip
[09:54:26] I/update - geckodriver: geckodriver-v0.15.0.exe up to date
[09:54:26] Finished 'webdriver_update' after 3.91 s
[09:54:26] Starting 'protractor'...
[09:54:27] W/driverProviders - Using driver provider directConnect, but also found extra driver provider parameter(s): seleniumAddress
[09:54:27] I/launcher - Running 1 instances of WebDriver
[09:54:27] I/direct - Using FirefoxDriver directly...
[09:54:34] E/launcher - Unable to parse new session response: {"value": {"sessionId":"2ae0d0d4-bd6e-4683-bcd7-adccf83e66dd","value":{"a
cceptInsecureCerts":false,"browserName":"firefox","browserVersion":"52.0","moz:accessibilityChecks":false,"moz:processID":31788,"moz:pr
ofile":"C:\\Users\\Rahul\\AppData\\Local\\Temp\\rust_mozprofile.nMy4w0qmOZqL","pageLoadStrategy":"normal","platformName":"windows_nt","
platformVersion":"10.0","rotatable":false,"specificationLevel":0,"timeouts":{"implicit":0,"page load":300000,"script":30000}}}}
[09:54:34] E/launcher - WebDriverError: Unable to parse new session response: {"value": {"sessionId":"2ae0d0d4-bd6e-4683-bcd7-adccf83e6
6dd","value":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"52.0","moz:accessibilityChecks":false,"moz:processI
D":31788,"moz:profile":"C:\\Users\\Rahul\\AppData\\Local\\Temp\\rust_mozprofile.nMy4w0qmOZqL","pageLoadStrategy":"normal","platformName
":"windows_nt","platformVersion":"10.0","rotatable":false,"specificationLevel":0,"timeouts":{"implicit":0,"page load":300000,"script":3
0000}}}}
    at WebDriverError (D:\projects\GIT hub\gulp-protractor fork\node_modules\selenium-webdriver\lib\error.js:27:5)
    at doSend.then.response (D:\projects\GIT hub\gulp-protractor fork\node_modules\selenium-webdriver\lib\http.js:445:19)
    at process._tickCallback (internal/process/next_tick.js:103:7)
From: Task: WebDriver.createSession()

    at Function.createSession (D:\projects\GIT hub\gulp-protractor fork\node_modules\selenium-webdriver\lib\webdriver.js:777:24)
    at Function.createSession (D:\projects\GIT hub\gulp-protractor fork\node_modules\selenium-webdriver\firefox\index.js:640:55)
    at Direct.getNewDriver (D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\lib\driverProviders\direct.ts:112:25)
    at Runner.createBrowser (D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\lib\runner.ts:225:39)
    at q.then.then (D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\lib\runner.ts:391:27)
    at _fulfilled (D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:834:54)
    at self.promiseDispatch.done (D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:863:30)
    at Promise.promise.promiseDispatch (D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:796:13)
    at D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:556:49
    at runSingle (D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:137:13)
[09:54:34] E/launcher - Process exited with error code 199
{ [Error: protractor exited with code 199]
  message: 'protractor exited with code 199',
  showStack: false,
  showProperties: true,
  plugin: 'gulp-protractor',
  __safety: { toString: [Function: bound ] } }

But when I start selenium standalone server with gecko driver location and remove directConnect then it works fine.

m-ajitabh commented 7 years ago

Update your protractor and try again.

Thanks Ajitabh Ranjan Mob: 9430331985

On Wed, Mar 15, 2017 at 9:59 AM, Rahul Raut notifications@github.com wrote:

Hello All,

I am having same issue with latest Firefox version 52.0 32bit when I give directConnect: true nothing works seems like 2 firefox tabs are opened and test fails.

[09:54:22] Using gulpfile D:\projects\GIT hub\gulp-protractor fork\example\gulpfile.js [09:54:22] Starting 'webdriver_update'... [09:54:24] I/update - chromedriver: file exists D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\node_modules\webdriver -manager\selenium\chromedriver_2.28.zip [09:54:24] I/update - chromedriver: unzipping chromedriver_2.28.zip [09:54:24] I/update - chromedriver: chromedriver_2.28.exe up to date [09:54:24] I/update - selenium standalone: file exists D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\node_modules\we bdriver-manager\selenium\selenium-server-standalone-3.3.1.jar [09:54:24] I/update - selenium standalone: selenium-server-standalone-3.3.1.jar up to date [09:54:26] I/update - geckodriver: file exists D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\node_modules\webdriver- manager\selenium\geckodriver-v0.15.0.zip [09:54:26] I/update - geckodriver: unzipping geckodriver-v0.15.0.zip [09:54:26] I/update - geckodriver: geckodriver-v0.15.0.exe up to date [09:54:26] Finished 'webdriver_update' after 3.91 s [09:54:26] Starting 'protractor'... [09:54:27] W/driverProviders - Using driver provider directConnect, but also found extra driver provider parameter(s): seleniumAddress [09:54:27] I/launcher - Running 1 instances of WebDriver [09:54:27] I/direct - Using FirefoxDriver directly... [09:54:34] E/launcher - Unable to parse new session response: {"value": {"sessionId":"2ae0d0d4-bd6e-4683-bcd7-adccf83e66dd","value":{"a cceptInsecureCerts":false,"browserName":"firefox","browserVersion":"52.0","moz:accessibilityChecks":false,"moz:processID":31788,"moz:pr ofile":"C:\Users\Rahul\AppData\Local\Temp\rust_mozprofile.nMy4w0qmOZqL","pageLoadStrategy":"normal","platformName":"windows_nt"," platformVersion":"10.0","rotatable":false,"specificationLevel":0,"timeouts":{"implicit":0,"page load":300000,"script":30000}}}} [09:54:34] E/launcher - WebDriverError: Unable to parse new session response: {"value": {"sessionId":"2ae0d0d4-bd6e-4683-bcd7-adccf83e6 6dd","value":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"52.0","moz:accessibilityChecks":false,"moz:processI D":31788,"moz:profile":"C:\Users\Rahul\AppData\Local\Temp\rust_mozprofile.nMy4w0qmOZqL","pageLoadStrategy":"normal","platformName ":"windows_nt","platformVersion":"10.0","rotatable":false,"specificationLevel":0,"timeouts":{"implicit":0,"page load":300000,"script":3 0000}}}} at WebDriverError (D:\projects\GIT hub\gulp-protractor fork\node_modules\selenium-webdriver\lib\error.js:27:5) at doSend.then.response (D:\projects\GIT hub\gulp-protractor fork\node_modules\selenium-webdriver\lib\http.js:445:19) at process._tickCallback (internal/process/next_tick.js:103:7) From: Task: WebDriver.createSession()

at Function.createSession (D:\projects\GIT hub\gulp-protractor fork\node_modules\selenium-webdriver\lib\webdriver.js:777:24)
at Function.createSession (D:\projects\GIT hub\gulp-protractor fork\node_modules\selenium-webdriver\firefox\index.js:640:55)
at Direct.getNewDriver (D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\lib\driverProviders\direct.ts:112:25)
at Runner.createBrowser (D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\lib\runner.ts:225:39)
at q.then.then (D:\projects\GIT hub\gulp-protractor fork\node_modules\protractor\lib\runner.ts:391:27)
at _fulfilled (D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:834:54)
at self.promiseDispatch.done (D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:863:30)
at Promise.promise.promiseDispatch (D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:796:13)
at D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:556:49
at runSingle (D:\projects\GIT hub\gulp-protractor fork\node_modules\q\q.js:137:13)

[09:54:34] E/launcher - Process exited with error code 199 { [Error: protractor exited with code 199] message: 'protractor exited with code 199', showStack: false, showProperties: true, plugin: 'gulp-protractor', __safety: { toString: [Function: bound ] } }

But when I start selenium standalone server with gecko driver location and remove directConnect then it works fine.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/angular/protractor/issues/886#issuecomment-286638073, or mute the thread https://github.com/notifications/unsubscribe-auth/AOad5-VahANDTXAuEHBPEaUo-ymmeOW8ks5rl2kigaJpZM4CAL2g .

rahulmr commented 7 years ago

It is latest one 5.1.1

m-ajitabh commented 7 years ago

I am not using the gulp to run the protector. I am using the protractor directly with firefox configuration and it is running. How have you configured firefox????

On Mar 16, 2017 1:00 AM, "Rahul Raut" notifications@github.com wrote:

It is latest one 5.1.1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/angular/protractor/issues/886#issuecomment-286853565, or mute the thread https://github.com/notifications/unsubscribe-auth/AOad53VXnGkxDg9j044VAjqtkkeorfQqks5rmDxZgaJpZM4CAL2g .

makwanaparth94 commented 7 years ago

Not able to Run Protractor Test on Firefox browser Failed: [INFO] Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z' [INFO] System info: host: 'MC0XSZYC', ip: '10.87.197.153', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_131' [INFO] Driver info: driver.version:

Eclipse raised these issue while running test on firefox

image

wswebcreation commented 7 years ago

@makwanaparth94

Can you provide more info, like which version:

makwanaparth94 commented 7 years ago

Yeah sure! I am using Protractor v5.1,Firefox 55.0.3 and geckodriver: 0.18.0

kangaro0 commented 7 years ago

@makwanaparth94 I ran into this issue while testing with protractor too. The problem was that firefox lost focus, because of me fiddeling around while protractor was running. When I left it do its thing everything went well.