Categories
Automated Testing

Stop Firefox auto-updating (and breaking your CI build)

If you run regular automated WebDriver tests using Firefox then chances are you’ve encountered the problem where Firefox updates itself and your WebDriver bindings don’t support that version which causes all your tests to fail. It’s really annoying, so I suggest you set your Firefox install to never automatically update as below to avoid this happening.

Stop Firefox auto updating

Update:

As Alex points out below, you can do this programmatically for a server you don’t actually launch Firefox on, ie. a headless machine.

profile = Selenium::WebDriver::Firefox::Profile.new
 # disable autoupdate
 profile['app.update.auto'] = false
 profile['app.update.enabled'] = false

0 replies on “Stop Firefox auto-updating (and breaking your CI build)”

In case you’re running Firefox on headless server (e.g. with Xvfb), you can try to disable auto-update using profile:

profile = Selenium::WebDriver::Firefox::Profile.new
# disable autoupdate
profile[‘app.update.auto’] = false
profile[‘app.update.enabled’] = false

What if I still get updates sometimes even when the service is disabled.
It’s weird because I have everything disabled including the Mozilla Maintenance Service. Yet yesterday I barely glimpsed at a notification that ff25 is available. I ignored it, but today at startup it upgraded.
Didn’t get an UAC prompt but the service is STILL DISABLED.
What the hell?

Leave a Reply

Your email address will not be published.