question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run protractor with firefox both directly connect or selenium server on latest

See original GitHub issue

I have tried running firefox on both directConnect or selenium Server. Both failed with different error:

With directConnect, error response:

I/direct - Using FirefoxDriver directly...
Ignoring uncaught error WebDriverError: Unable to parse new session response: {"value": {"sessionId":"d81ef6c2-716d-cd40-92ed-06074e92e5ad","value":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"52.0","moz:accessibilityChecks":false,"moz:processID":78446,"moz:profile":"/var/folders/h_/9whk89t96qx1vg3kn2f56z9r197k29/T/rust_mozprofile.XRiJ573zqmWm","pageLoadStrategy":"normal","platformName":"darwin","platformVersion":"15.6.0","rotatable":false,"specificationLevel":0,"timeouts":{"implicit":0,"page load":300000,"script":30000}}}}
[13:04:41] E/launcher - BUG: launcher exited with 1 tasks remaining

With selenium server 3.3.1, error response:

Ignoring uncaught error WebDriverError: Cannot find firefox binary version 'ANY' in PATH
Build info: version: '3.3.1', revision: '5234b32', time: '2017-03-10 09:04:52 -0800'
System info: host: 'CDLVDIW700982', ip: '51.16.105.196', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
[13:18:17] E/launcher - BUG: launcher exited with 1 tasks remaining

Bug report

  • Node Version: 6.9.4
  • Protractor Version: 5.1.1
  • Angular Version: hybrid of 1.5 and 2
  • Browser(s): firefox
  • Operating System and Version Mac
  • Your protractor configuration file
  • A relevant example test
  • Output from running the test
  • Steps to reproduce the bug
  • The URL you are running your tests against (if relevant)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
wswebcreationcommented, Aug 27, 2017

@matt328

I’ve got it working with

  • FF 55.0.3
  • Node 6.11.1
  • Protractor 5.1.2
  • geckodriver: 0.18.0
  • Selenium: 3.5.2

but only when I use a standalone webdriver-manager.

With directConnect I get this error

npm run test.example

> protractor@5.1.2 test.example /Users/wswebcreation/contributions/protractor
> node ./bin/protractor example/conf.js

[08:28:49] I/launcher - Running 1 instances of WebDriver
[08:28:49] I/local - Starting selenium standalone server...
[08:28:50] I/local - Selenium standalone server started at http://192.168.1.17:54140/wd/hub
[08:28:50] E/launcher - Unable to create new service: GeckoDriverService
Build info: version: '3.5.2', revision: '10229a9020', time: '2017-08-21T17:54:21.164Z'
System info: host: 'MacBook-Pro-2.local', ip: 'fe80:0:0:0:d7:c484:75bf:69ef%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_25'
Driver info: driver.version: unknown
[08:28:50] E/launcher - SessionNotCreatedError: Unable to create new service: GeckoDriverService
Build info: version: '3.5.2', revision: '10229a9020', time: '2017-08-21T17:54:21.164Z'
System info: host: 'MacBook-Pro-2.local', ip: 'fe80:0:0:0:d7:c484:75bf:69ef%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_25'

Can you check again?

2reactions
jlin412commented, Apr 10, 2017

Able to move pass to my angular site with standalone server. I see a new error now. Similar to this stackoverflow page: http://stackoverflow.com/questions/42760973/unable-to-use-firefox-v52-0-with-protractor

   Message:
     WebDriverError: Error: Permission denied to access property "invoke"
     Build info: version: '3.3.1', revision: '5234b32', time: '2017-03-10 09:04:52 -0800'
     System info: host: 'ROSELCDV0001W25', ip: '26.41.226.13', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.3', java.version: '1.8.0_121'
     Driver info: org.openqa.selenium.firefox.FirefoxDriver
     Capabilities [{moz:profile=/var/folders/h_/9whk89t96qx1vg3kn2f56z9r197k29/T/rust_mozprofile.nu0Y7BY5LWJC, rotatable=false, timeouts={implicit=0, page load=300000, script=30000}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=52.0, platformVersion=16.4.0, moz:processID=58502, browserName=firefox, platformName=darwin}]
     Session ID: 7b8f4037-3324-7f42-8d8f-5e2b9e36bd5c
         at WebDriverError (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/error.js:27:5)
         at Object.checkLegacyResponse (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/error.js:505:15)
         at parseHttpResponse (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/http.js:509:13)
         at doSend.then.response (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/http.js:440:13)
         at process._tickCallback (internal/process/next_tick.js:103:7)
     From: Task: Protractor.waitForAngular() - Locator: By(css selector, input[name='user'],[name='orgoid'])
         at thenableWebDriverProxy.schedule (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/webdriver.js:816:17)
         at ProtractorBrowser.executeAsyncScript_ (/Users/linj/redbox_spa/redbox_angular/node_modules/protractor/lib/browser.ts:608:24)
         at angularAppRoot.then (/Users/linj/redbox_spa/redbox_angular/node_modules/protractor/lib/browser.ts:642:23)
         at ManagedPromise.invokeCallback_ (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/promise.js:1366:14)
         at TaskQueue.execute_ (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/promise.js:2970:14)
         at TaskQueue.executeNext_ (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/promise.js:2953:27)
         at asyncRun (/Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/promise.js:2813:27)
         at /Users/linj/redbox_spa/redbox_angular/node_modules/selenium-webdriver/lib/promise.js:676:7Error
         at ElementArrayFinder.applyAction_ (/Users/linj/redbox_spa/redbox_angular/node_modules/protractor/lib/element.ts:482:23)
         at ElementArrayFinder.(anonymous function) [as clear] (/Users/linj/redbox_spa/redbox_angular/node_modules/protractor/lib/element.ts:96:21)
         at ElementFinder.(anonymous function) [as clear] (/Users/linj/redbox_spa/redbox_angular/node_modules/protractor/lib/element.ts:873:14)
         at setOrgidOrUsername (/Users/linj/redbox_spa/redbox_angular/test/e2e/page_objects/log_in_page.js:277:21)
         at LoginPage.iEloginWithUserJson (/Users/linj/redbox_spa/redbox_angular/test/e2e/page_objects/log_in_page.js:116:5)
         at LoginPage.loginSkipBrowserGet (/Users/linj/redbox_spa/redbox_angular/test/e2e/page_objects/log_in_page.js:149:10)
         at loginWithUserJson (/Users/linj/redbox_spa/redbox_angular/test/e2e/page_objects/log_in_page.js:129:17)
         at LoginPage.login (/Users/linj/redbox_spa/redbox_angular/test/e2e/page_objects/log_in_page.js:222:14)
         at World.<anonymous> (/Users/linj/redbox_spa/redbox_angular/test/e2e/features/time/step_definitions/time_login_steps.js:40:22)

Anyone see this error before and know how to resolve it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run firefox protractor without setting direct connect to ...
I am attempting to run my unit tests in both chrome and firefox. Chrome runs all the test cases perfectly but I was...
Read more >
angular/protractor - Gitter
I read that using directConnect only works with Firefox and Chrome, and it will run against the local browser installation. And the selenium...
Read more >
Untitled
seleniumAddress - to connect to a Selenium Server which is already; // running. // 3. ... directConnect - to connect directly to the...
Read more >
Setting Up the Selenium Server - Protractor
Connecting Directly to Browser Drivers​​ Protractor can test directly against Chrome and Firefox without using a Selenium Server. To use this, in your...
Read more >
Unable to run Protractor tests in Microsoft Edge
When enabled Chrome and Firefox are able to run the test. Edge fails with the following (timeout waiting for driver server to start):...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found