Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium and Firefox 9's "Will you help improve Mozilla Firefox" popup

I'm trying to test a Java web app using Selenium 2.16.1. When Selenium opens Firefox, I see a band at the top of the page with message "Will you help improve Mozilla Firefox"

Will you help improve Mozilla Firefox by sending anonymous information about perfomance, hardware characteristics, feature usage, and browser customisations to Mozilla?

For some reason this breaks

selenium.click("id=submit");
selenium.waitForPageToLoad("60000");

which is trying to log in - it becomes a no-op, and the test fails because it's then expecting to have logged in. If I break on the click line and clear the 'will you help' band before continuing then the form submit succeeds.

Is there a way to suppress this band from appearing? (I expect that would mean setting a property in Firefox's default profile - where do I find that?) Or is there a way to get Selenium to spot and dismiss this first? Thanks! I'm using Firefox 9.0.1.


Solved - thanks Danny! Just in case it isn't clear from the answers and comments below:
This was an issue with 2.16.1 and IMO the best solution is to upgrade to 2.17 or later.


Peter points out below that this question is highly ranked for the "Will you help" message itself. If you're looking to disable it:

  • Firefox 9/10+: http://developers.sugarcrm.com/wordpress/2012/01/23/howto-disable-the-mozilla-firefox-telemetry-feature/ (and please vote up Peter's answer)
  • Firefox 6-8/9 or earlier: https://wiki.mozilla.org/Security/Reviews/Firefox6/ReviewNotes/telemetry (please vote up Danny's answer)
like image 423
Rup Avatar asked Jan 09 '12 18:01

Rup


People also ask

Does Selenium work with Firefox?

Selenium IDE is an integrated development environment for Selenium tests. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests.

Which Firefox version is best for Selenium?

Selenium users must update to version 3.11 or later to use geckodriver. Other clients that follow the W3C WebDriver specification are also supported.

Is Chrome or Firefox better Selenium?

Since both browsers work with Selenium IDE, you can select the browser based on the visitors to the website you are developing. If most of the traffic comes from Chrome, which is mostly the case, then using Chrome is the best option. All in all, what you are aiming for is a quick way to improve the testing process.


1 Answers

This is the telemetry feature, and the prompt is controlled by the toolkit.telemetry.prompted property:

https://wiki.mozilla.org/Security/Reviews/Firefox6/ReviewNotes/telemetry

You can set it via prefs.js:

http://kb.mozillazine.org/Prefs.js_file

Also relevant:

http://code.google.com/p/selenium/issues/detail?id=3144

like image 93
Danny Thomas Avatar answered Nov 15 '22 19:11

Danny Thomas