protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Firefox 50.1.0 not working

Open stanbe opened this issue 9 years ago • 35 comments

Bug report

  • Node Version: 6.7.0
  • Protractor Version: 4.0.10
  • Angular Version: 2.1.0
  • Browser(s): Firefox 50.1.0
  • Operating System and Version Win8.1 Enterprise
  • Your protractor configuration file
exports.config = {
    capabilities: {
        'browserName': 'firefox'
    },
    specs: ['**/*.e2e.spec.js'],
    useAllAngular2AppRoots: true,
    baseUrl: 'http://localhost:64065/',
    directConnect : true
};
  • A relevant example test
describe('Expense overview list', function () {

    it('should should have Anakin Skywalker as first entry', function () {
        browser.get('/home');
        expect(browser.getTitle()).toEqual('Angular');

        browser.get('/overview');

        expect(element(by.id('00000000-0000-0000-0000-000000000001')).getText()).toEqual('ANAKIN SKYWALKER');
    });
});
  • Output from running the test
[15:08:27] I/direct - Using FirefoxDriver directly...
[15:08:27] I/launcher - Running 1 instances of WebDriver
[15:09:12] E/launcher - Timed out waiting for the WebDriver server at http://127.0.0.1:60626/hub
[15:09:12] E/launcher - Error: Timed out waiting for the WebDriver server at http://127.0.0.1:60626/hub
    at Error (native)
    at onError (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\http\util.js:87:11)
    at ManagedPromise.invokeCallback_ (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1379:14)
    at TaskQueue.execute_ (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2913:14)
    at TaskQueue.executeNext_ (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2896:21)
    at asyncRun (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2775:27)
    at C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
    at process._tickCallback (internal/process/next_tick.js:103:7)
From: Task: WebDriver.createSession()
    at Function.createSession (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:329:24)
    at Driver (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\firefox\index.js:386:38)
    at Direct.getNewDriver (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\built\driverProviders\direct.js:75:26)
    at Runner.createBrowser (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\built\runner.js:198:43)
    at C:\Users\john\AppData\Roaming\npm\node_modules\protractor\built\runner.js:285:30
    at _fulfilled (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:834:54)
    at self.promiseDispatch.done (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:863:30)
    at Promise.promise.promiseDispatch (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:796:13)
    at C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:556:49
    at runSingle (C:\Users\john\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:137:13)
[15:09:12] E/launcher - Process exited with error code 199
  • Steps to reproduce the bug just run protractor protractor.conf.js
  • The URL you are running your tests against (if relevant) see protractor.conf.js

Firefox is starting but nothing happens, just an empty screen.

stanbe avatar Dec 14 '16 14:12 stanbe

+1

Xotabu4 avatar Dec 14 '16 18:12 Xotabu4

+1

ThomasOpiolka avatar Dec 16 '16 06:12 ThomasOpiolka

+1

BishuSinha avatar Dec 18 '16 23:12 BishuSinha

Right, firefox is very confused with the latest versions of selenium server. We're investigating what's compatible with what now, with marionettedriver and geckodriver and various versions of selenium. Stay tuned.

juliemr avatar Dec 19 '16 19:12 juliemr

See also https://github.com/angular/protractor/issues/3750

juliemr avatar Dec 19 '16 19:12 juliemr

(assigning to you @mgiambalvo because I didn't assign many over issues to you, and I feel like I need to balance)

sjelin avatar Dec 22 '16 04:12 sjelin

We will need to update the directConnect provider for Selenium 3.0. However, Firefox is still broken. We can address this once Firefox 51 ships.

heathkit avatar Jan 10 '17 23:01 heathkit

Note that as of Protractor 5.1, we'll support Firefox 51+ and greater. Older versions of Firefox won't work with directConnect, but may work with selenium server and marionette: false. A bug was introduced in Selenium 3.0.0 that breaks the JS Firefox driver (SeleniumHQ/selenium#3115) - it's been fixed, but won't be available until the next release of selenium server (3.0.2 or greater). So to use the latest Firefox, you'll need to use selenium server 3.0.0-beta4 like so:

webdriver-manager update
wget http://selenium-release.storage.googleapis.com/3.0-beta4/selenium-server-standalone-3.0.0-beta4.jar -P ./node_modules/webdriver-manager/selenium
webdriver-manager start --versions.standalone 3.0.0-beta4

heathkit avatar Jan 18 '17 21:01 heathkit

Protractor test is not running on FireFox 51+ for Windows 8.1 64bit

Browser is open but do not have any action take place getting below error 03-02-2017 11-21-31

sdseenu avatar Feb 03 '17 05:02 sdseenu

+1

theandrewlane avatar Feb 08 '17 21:02 theandrewlane

+ @seanmay

sjelin avatar Feb 08 '17 22:02 sjelin

Thanks @mgiambalvo. It was driving me nuts why during the middle of the day, Protractor/Firefox had been working fine then suddenly Firefox wouldn't even go to the URL but instead timed out. Looking at Firefox's update history I discovered it had auto-updated from 50.1.0 to 51.0.1 while I was at lunch!

There were a few extra hoops I personally had to jump through. Some are Mac-specific, but this might help speed up others with the same issues.

1- OSX doesn't have wget installed by default, but it's an easy install 2- The webdriver-manager start failed as it expected the JAR in a different location (/Users/esoyke/.nvm/versions/node/v6.2.2/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.0.0-beta4.jar). I manually moved it there. 3- Ran into another error starting Selenium (Exception in thread "main" java.lang.UnsupportedClassVersionError: org/openqa/grid/selenium/GridLauncherV3 : Unsupported major.minor version 52.0 ). The Mac had Java 7 so I upgraded to 8. 4- Was still getting the same error until I removed the "directConnect: true" from my config.

Back in the saddle!

esoyke avatar Feb 09 '17 15:02 esoyke

For me I also had to modify the original workaround slightly:

wget http://selenium-release.storage.googleapis.com/3.0-beta4/selenium-server-standalone-3.0.0-beta4.jar -P ./node_modules/protractor/node_modules/webdriver-manager/selenium
./node_modules/.bin/webdriver-manager start --versions.standalone 3.0.0-beta4

JoshLipps avatar Feb 15 '17 07:02 JoshLipps

Does anyone know whether Selenium 3.1.0 works or not?

joeydaowang avatar Feb 27 '17 01:02 joeydaowang

For me the release of 3.1.0 does seem to have fixed things. (I no longer have to use the above work around)

JoshLipps avatar Feb 27 '17 07:02 JoshLipps

@JoshLipps does 'directConnect: true' work for you?

joeydaowang avatar Feb 27 '17 20:02 joeydaowang

directConnect:true not working for me on Firefox 52.0 32bit and gecko 15.0 while it works with selenium-standalone 3.3.1 but only when I provide below options and start server manually in another git bash shell.

-Dwebdriver.gecko.driver=./node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.15.0.exe

see logs here

rahulmr avatar Mar 15 '17 04:03 rahulmr

Same issue as @rahulmr here https://travis-ci.org/benitogf/corsarial

E/launcher - Unable to parse new session response: {"value": {"sessionId":"4c02cc6a-c507-4b7a-bf77-d0fa65abe8b6","value":{"XULappId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","acceptSslCerts":false,"appBuildId":"20170125094131","browserName":"firefox","browserVersion":"51.0.1","command_id":1,"count":1,"platform":"LINUX","platformName":"linux","platformVersion":"4.8.12-040812-generic","processId":7886,"proxy":{},"raisesAccessibilityExceptions":false,"rotatable":false,"specificationLevel":0,"takesElementScreenshot":true,"takesScreenshot":true,"version":"51.0.1"}}}

benitogf avatar Mar 15 '17 06:03 benitogf

@rahulmr how did you start the server manually with the mentioned option ?

RaviKlair avatar Apr 10 '17 22:04 RaviKlair

@RaviKlair its a simple one. see below

java -Dwebdriver.gecko.driver="./node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.15.0.exe" -jar selenium-standalone-3.3.1,jar `

rahulmr avatar Apr 11 '17 02:04 rahulmr