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

Posted by Rup on Stack Overflow See other posts from Stack Overflow or by Rup
Published on 2012-01-09T18:55:37Z Indexed on 2012/06/06 16:40 UTC
Read the original article Hit count: 364

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about firefox