Selenium hangs inst...
Clear all

Selenium hangs instantiating FirefoxDriver  


Sathish Kumar
Member Moderator
Joined: 4 months ago
Posts: 1203
07/04/2021 10:40 am  

I try to get started with selenium (downloaded the current version today) and copied their example which opens a browser and performs a google search.

However, the program hangs forever in the 1st line WebDriver driver = new FirefoxDriver();.

I have Firefox 13 installed.

Thread dump:

Thread [main]

  Thread.sleep(long) line: not available [native method] [local variables unavailable]

  FirefoxBinary.sleep(long) line: 218

  FirefoxBinary.clean(FirefoxProfile, File) line: 234

  NewProfileExtensionConnection.start() line: 76

  FirefoxDriver.startClient() line: 200

  FirefoxDriver(RemoteWebDriver).(CommandExecutor, Capabilities) line: 94

  FirefoxDriver.(FirefoxBinary, FirefoxProfile) line: 147

  FirefoxDriver.() line: 85

  Test.main(String[]) line: 24

Noble Member
Joined: 4 months ago
Posts: 1179
07/04/2021 10:41 am  

These cases occur usually when the Firefox browser & Selenium are incompatible with each other.

You should try either of the two things: 

update Selenium to the latest one and/or downgrade Firefox.


You can find the release notes for Selenium WebDriver which gives detail about what are the new features added and what bugs are found etc, in the release.