Heads up: Protractor is not working with Firefox 35/36
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!
Same here!
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'
Filed issue: https://code.google.com/p/selenium/issues/detail?id=8398
At some point I got that error too, @juliemr.
Looks like we'll just have to wait, then.
Thanks for looking into it =]
:+1: Same issue here.
Same issue here.
:+1: same here
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.
:+1:
+1 http://stackoverflow.com/questions/27645260/protractor-e2e-tests-run-at-chrome-but-halt-at-firefox
Temporary "solution" - downgrade to Firefox 34: https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/34.0
This has been addressed and will be fixed once the next version of the selenium server is out.
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()
"...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
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
Just came across this issue while running the tests today...Thank you for the heads up and the details!
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.
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' },
@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 :-/
Selenium throws this with FF 36 : ERROR - Unable to start a WebDriver session. Sticking with 34 seems to be only fix for now.