views:

479

answers:

6

I am running regression tests with Selenium and am automatically launching instances of Firefox.

The problem is my tests get stuck because of Firefox's license agreement dialog:

Copyright notice.

I can't click with the mouse because I am in an headless environment with a virtual graphical environment.

I would like to know what Firefox's file can I edit (and how to edit it) to trick Firefox into thinking somebody accepted the copyright.

Clarification following comments

I need to do it just once. But I can't do it with the mouse as this is a virtual graphic environment and I don't have mouse or see the mouse pointer. I can however take screenshots.

A: 

Write a Selenium test that clicks "I agree"

or

add whatever "agreed" setting makes Firefox skip this to the Firefox profile's prefs.js

or

just use a Firefox profile that has already agreed to the license.

tpdi
+1  A: 

According to this link text its been removed - but it look like a later version than yours.

Preet Sangha
A: 

That EULA is as useless as it is annoying and its now defunct, it has been REMOVED in subsequent versions. See this thread. I'd recommend just pulling a newer version before considering an ad-hoc work around. They [Mozilla] quickly learned, users of free/open source software do NOT like end user license agreements. All its doing is asserting their trademark.

EDIT

If you use some kind of work around, you are violating the EULA, which (as I said) DOES NOT EXIST IN FUTURE VERSIONS.

I fail to see the logic of beating your head against a brick wall needlessly. If Windows 7.1 was proprietary but Windows 7.2 was free/open source software, which one would you package??

Tim Post
If you vote this down, please leave a comment. This is a NON ISSUE, the EULA was REMOVED. Why, oh why should the OP continue to package something with a now defunct EULA??If you can't leave a comment, steer your mouse away from the down arrow.
Tim Post
Tinkertim, don't worry about it. Andy has 8 accepted answers; seven of those are to his own questions, where he marked his own answer as best. We just got trolled into playing extras in Andy's production of an Andy film starring Andy, called "Increase Andy's Reputation".
tpdi
@tpdi, looks that way. This one goes beyond brain dead.
Tim Post
+4  A: 

OK, I found it by myself in the end.

The right answer is:

In the Firefox installation, look for firefox.js

Find this line:

pref("browser.EULA.3.accepted", false);

and replace false whit true

Thanks to all that helped.

flybywire
Why, oh why not just pull a newer version ???
Tim Post
Why present users with an EULA that no longer exists in later versions?? I just can't see that logic.
Tim Post
I reiterate, you are packaging software that has an EULA that does not exist in later versions. If that doesn't bother you, I can't help you.
Tim Post
A: 

In Firefox 3.0.10 it's hidden in the about:config under

browser.rights.3.shown

Set it to true and you're done.

furtelwart
A: 

There are two override prefs (the latter being the "legacy EULA pref"), which you can override in prefs.js in the profile directory:

user_pref("browser.rights.override", true);
user_pref("browser.EULA.override", true);
blueyed