Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a simple test that launches browser and calls a URL. This works fine in IE but when I select Firefox (FF) browser it opens blank. See the code snippet below.

The issue is similar to this post Post that concludes one has to change the settings in about:config's toolkit.telemetry.prompted to 2. But in my case its already 2, hence I have posted the issue.

Any help would be appreciated.

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.server.SeleniumServer;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;

import com.thoughtworks.selenium.*;

public class BascOne  extends SeleneseTestBase {
    private SeleniumServer seleniumserver;

    //start the selenium server
    public    void startServer()
        try {

        } catch (Exception e) {
            // TODO Auto-generated catch block

    public void launchTest() throws Exception
        seleniumserver = new SeleniumServer();


        setUp("", "firefox");

        System.out.println("IN THE  TEST METHOD");"");    

        System.out.println("BEFORE WAIT");        

        if(selenium != null){
            System.out.println("Is there any exception");
            try {
                System.out.println("In the try block");


            } catch(Exception exp) {
                System.out.println("Shutdown exception: " + exp.getMessage());



    public void tearDown()  {
share|improve this question
May I suggest to use WebDriver APIs (aka Selenium 2) if you have begun with Selenium? – Tarun Nov 15 '12 at 5:33
On a side, how does it compile if in startServer() has no block throwing exception? – dzieciou Nov 15 '12 at 7:00
I am also facing same issue. but when i run program using JUnit it runs successfully and with TestNG FF shows blank screen. Please help – user4442 Nov 27 '12 at 6:47
up vote 3 down vote accepted

This is because of compatibility issue with your browser and Selenium libs. Selenium libs 2.16 supports Firefox version 3.6 to 11, and for 12 you have to upgrade your Selenium libs to 2.22.

share|improve this answer

I had a similar issue and found the problem was the combination of firefox version and selenium server version. You could try either downgrading firefox or upgrading selenium to the latest version.

Check out browsers supported in the latest versions, note that the latest version only supports up to firefox 10 at the moment...

share|improve this answer
yes, I did downgrade to 3.6(was using that earlier) & it works. based on the link that u sent, will try v 10 & see if that helps as well. – Tahir Shabbir May 29 '12 at 6:41
No, I face the same issue. Get message from FF when it launches - Will you help FF by sending anonymous information about performance, hardware characteristics ...... to mozilla. And 2 options : Yes, I want to help or no. After clicking on either of them I am not able to proceed anywhere. – Tahir Shabbir May 29 '12 at 7:01
Yes downgrading the FF browser worked for me.....last time i had also tried to update the version of Sel Webdriver and it worked too...thanks – Gokul Rao Jul 21 at 12:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.