Because an error is reported when opening the firefox browser with Java
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
I checked online and said it was a compatibility issue
Then start looking for records that match the selenium version with the corresponding firefox version
The download address of each firefox version
http://ftp.mozilla.org/pub/firefox/releases/
The download address of each selenium jar package
http://selenium-release.storage.googleapis.com/index.html
In the selenium download page http://www.seleniumhq.org/download/ (requires FQ) in the changelog of each version, the supported firefox version will be recorded, as follows:
The corresponding records can be found inside, and you can read them carefully.
The first match I picked
v2.53.1
=======
Firefox:
* Update to allow use with Firefox 47.0.1
selenium-server-standalone-2.53.1.jar
firefox47