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.

directConnect not working with FF 52+ and Protractor 5.1.1 (unable to parse new session response)

See original GitHub issue

Protractor 5.1.1 is using version 3.0.1 of the Selenium JS bindings. When using directConnect: true Protractor will control geckodriver directly. Unfortunately, this version of the JS bindings is no longer compatible with the latest geckodriver (See https://github.com/mozilla/geckodriver/issues/555 https://github.com/mozilla/geckodriver/issues/529 and https://github.com/SeleniumHQ/selenium/issues/3607).

The solution is to use selenium standalone when testing with Firefox. The latest version of the selenium standalone server is compatible with Protractor’s selenium JS bindings and with geckodriver. You can update and launch the standalone server with

webdriver-manager update
webdriver-manager start

and set seleniumAddress: http://localhost:4444. For an example using selenium standalone, see protractor cookbook. Note Protractor 5.1.1 requires Selenium 3 or greater and Firefox 52 or greater.

In the meantime, directConnect: true will not work with Firefox until the external issues are fixed and Protractor’s selenium-webdriver version is updated.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:12
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

7reactions
krisztiankocsiscommented, Jun 1, 2017

I have the same issue, with the same version as in the last comment. Do anybody know where is the problem?

6reactions
warnerocommented, Jun 2, 2017

Been beating my head against this for the past day and a half. Hopefully this gets fixed soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

directConnect not working with FF 52+ and Protractor 5.1.1 (unable ...
directConnect not working with FF 52+ and Protractor 5.1.1 (unable to parse new session response) ... Protractor 5.1.1 is using version 3.0.1 of...
Read more >
angular/protractor - Gitter
... protractor 5.1.1 / selenium 3.3.1 against firefox 52... using directConnect true, I see the following error: Unable to parse new session response....
Read more >
Unable to parse new session response ... - Stack Overflow
Unable to parse new session response, when run Protractor test in firefox - Stack Overflow. Stack Overflow for Teams – Start collaborating and ......
Read more >
Protractor : Unable to parse new session response / Process ...
Adding directConnect itself might cause compatibility issues with certain browsers. I used Firefox version 66.0.2 and added the capabilities in ...
Read more >
Unable to run Protractor tests in Microsoft Edge
After additional time and working with yet another Windows 10 machine I have successfully gotten this simple test to run. I can only...
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