/    Sign up×
Community /Pin to ProfileBookmark

Selenium IDE Failing to on Firefox Browser

I am trying to run selenium test cases on my site and getting a wierd firefox launching problem from past few days.

I have tried few options per selenium FAQ page, however the problem still persists.
I have tried following things

  • 1. I have tried cleaning up the C:DOCUME~1fromdevLOCALS~1Temp directory. The directory mentioned in the java stacktrace does not really exist on my system.

  • 2. I have also tried restarting my system, just avoid any existing processes causing this.

  • 3. I have also tried checking the task manager on my windows machine and I dont see any firefox processes.

  • 4. I have also tried removing existing firefox profiles and recreating them.

  • 5. I have also tried firefox with no-addon mode, however no difference.
  • The exception stacktrace is as shown below.

    12:06:54.218 INFO – creating new remote session
    12:06:54.218 INFO – Allocated session 6461092698d344f0b9856f9152024b63 for [url]http://www.fromdev.com[/url], launching…
    12:06:54.234 INFO – Preparing Firefox profile…
    12:07:15.238 ERROR – Failed to start new browser session, shutdown browser and clear all session data
    java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
    at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
    tForFullProfileToBeCreated(FirefoxChromeLauncher.java:371)
    at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.pop
    ulateCustomProfileDirectory(FirefoxChromeLauncher.java:120)
    at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau
    nch(FirefoxChromeLauncher.java:90)
    at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau
    nchRemoteSession(FirefoxChromeLauncher.java:416)
    at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRem
    oteSession(FirefoxLauncher.java:118)
    at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSessi
    on(BrowserSessionFactory.java:374)
    at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession
    (BrowserSessionFactory.java:125)
    at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession
    (BrowserSessionFactory.java:86)
    at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowse
    rSession(SeleniumDriverResourceHandler.java:809)
    at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(Se
    leniumDriverResourceHandler.java:435)
    at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleComman
    dRequest(SeleniumDriverResourceHandler.java:405)
    at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(Selen
    iumDriverResourceHandler.java:149)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
    at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
    at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)

    at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:9
    86)
    at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
    at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.
    java:243)
    at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
    Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher$FileLockRemainedException: Lock file still present! C:DOCUME~1fromdevLOCALS~1TempcustomProfileDir6461092698d344f0b9856f9152024b63parent.lock
    at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
    tForFileLockToGoAway(FirefoxChromeLauncher.java:322)
    at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
    tForFullProfileToBeCreated(FirefoxChromeLauncher.java:369)
    … 20 more
    12:07:15.238 INFO – Got result: Failed to start new browser session: Error while
    launching browser on session null

    to post a comment
    JavaScript

    0Be the first to comment 😎

    ×

    Success!

    Help @StephenHawking9 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...