protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Heads up: Protractor is not working with Firefox 35/36

Open ericmdantas opened this issue 11 years ago • 49 comments

Yesterday things were working just fine, but today Firefox got updated and protractor suddenly wouldn't run the tests anymore. It'd just show the page - like it never requested the whole thing - and, after a while, it shows the Jasmine spec timeout type of error.

Apparently it's something related to the driver, since when I downgraded Firefox to 33.1 and ran the tests again, they worked like a charm.

When they release the compatible version (firefox/driver), do I have to update the webdriver-manager or will protractor have to be updated as well?

Thanks!

ericmdantas avatar Jan 16 '15 13:01 ericmdantas

Same here!

ValentinH avatar Jan 16 '15 14:01 ValentinH

We're taking a look. Here's what I know so far:

This is not an issue just with Protractor. I can do a test using only webdriverJS against FireFox35 and it fails. Here's the test:


var util = require('util'),
    webdriver = require('selenium-webdriver');

var driver = new webdriver.Builder().
    usingServer('http://localhost:4444/wd/hub').
    withCapabilities({'browserName': 'firefox'}).
    build();

driver.get('http://juliemr.github.io/webdriver-bugs/');

driver.executeAsyncScript(function(cb) {
  window.setTimeout(function() {
    cb();
  }, 30);
});

driver.quit();

In the firefox console, I see the error: Error: Permission denied to access property '0'

juliemr avatar Jan 16 '15 19:01 juliemr

Filed issue: https://code.google.com/p/selenium/issues/detail?id=8398

juliemr avatar Jan 16 '15 19:01 juliemr

At some point I got that error too, @juliemr.

Looks like we'll just have to wait, then.

Thanks for looking into it =]

ericmdantas avatar Jan 17 '15 14:01 ericmdantas

:+1: Same issue here.

ehacke avatar Jan 17 '15 20:01 ehacke

Same issue here.

flegall avatar Jan 20 '15 14:01 flegall

:+1: same here

byaminov avatar Jan 20 '15 14:01 byaminov

My issue was merged into https://code.google.com/p/selenium/issues/detail?id=8390 which is tracking. Note that this is broken on all systems for FireFox 35.

juliemr avatar Jan 20 '15 18:01 juliemr

:+1:

Olgagr avatar Jan 21 '15 11:01 Olgagr

+1 http://stackoverflow.com/questions/27645260/protractor-e2e-tests-run-at-chrome-but-halt-at-firefox

igorshubovych avatar Jan 21 '15 13:01 igorshubovych

Temporary "solution" - downgrade to Firefox 34: https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/34.0

pfrandsen avatar Jan 30 '15 16:01 pfrandsen

This has been addressed and will be fixed once the next version of the selenium server is out.

juliemr avatar Feb 02 '15 19:02 juliemr

Just out of interest sake. I am able to get Firefox 35 and selenium to behave properly, even on headless server using the following python script (adapted from http://selenium.googlecode.com/svn/trunk/docs/api/py/index.html):

from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import time
import os
browser = webdriver.Firefox() 
browser.get("https://angularjs.org")
assert "AngularJS" in browser.title
# Uncomment if you need to take screenshot using ImageMagick import.
# Useful to 'prove' your Xvfb or other display works as expected.
#os.system('import -window root test_firefox_selenium.jpg')
browser.close()

adtrsa avatar Feb 06 '15 10:02 adtrsa

"...This has been addressed and will be fixed once the next version of the selenium server is out." Aprox When will this happen? is this related to linux? or is it better to just downgrade Firefox?

@adtrsa so its something not related directly to the webdriver? what OS, are you using ? Thanks Cheers

jesusrw avatar Feb 06 '15 17:02 jesusrw

I can't speak to when the next selenium server will be released, but I will update a new version of Protractor when that occurs.

It is not linux specific, it is for all users of Firefox 35. You can read the full details at https://code.google.com/p/selenium/issues/detail?id=8390

juliemr avatar Feb 06 '15 17:02 juliemr

Just came across this issue while running the tests today...Thank you for the heads up and the details!

acharyaankush avatar Feb 20 '15 08:02 acharyaankush

When you're bashing your head against a wall all day...... It's usually someone elses bug ;-D

Now I can relax, thanks for heads-up, wish I had looked earlier.

mryellow avatar Feb 23 '15 07:02 mryellow

I used a firefox protable 34 as downgraded version so I can keep the latest version of firefox on the windows machine I am testing on I installed firefox portable on an external disk and added the reference to the binary in the protractor config: capabilities: { 'browserName': 'firefox', 'firefox_binary': 'h:\portableapps\FirefoxPortable\FirefoxPortable.exe' },

Ferengee avatar Feb 24 '15 10:02 Ferengee

@mryellow Yeah... I spent all night debugging webdriver for Firefox only to find this. Next time I'll know to check the issue tracker for a finicky library :-/

Risto-Stevcev avatar Feb 24 '15 16:02 Risto-Stevcev

Selenium throws this with FF 36 : ERROR - Unable to start a WebDriver session. Sticking with 34 seems to be only fix for now.

vecernik avatar Feb 25 '15 15:02 vecernik