8

I am getting error as while using firefox with webdriver.

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

Firefox version:45.0 Selenium:2.50.1 Windows 10 64 bit

Is anyone getting the similar issue or any idea what is the solution for this.Its working fine with chrome but with firefox none of the URL's are getting loaded

dheeraj kateja
  • 161
  • 2
  • 4
  • 13
  • http://stackoverflow.com/search?tab=newest&q=port%207055%20after%2045000%20ms – Andrew Regan Mar 17 '16 at 18:48
  • I have even tried selenium 2.53,still getting the same result.Can anyone provide a solution or how to downgrade Firefox?? – dheeraj kateja Mar 18 '16 at 02:58
  • I have tried all the ways as mentioned in the link.Still its not working for me.Can anyone here provide how to use selenium 2.51/2.53 with firefox 45.0 on windows 10?? – dheeraj kateja Mar 18 '16 at 19:29

11 Answers11

6

Update to selenium server 2.53 solves the problem. http://www.seleniumhq.org/download/

Magomogo
  • 954
  • 4
  • 13
5

Please refer to https://stackoverflow.com/a/37728659/6469532

Summary: Combination of Firefox 47.0.1 and Selenium 2.53.1 will resolve the issue as of now.

Community
  • 1
  • 1
Mohit Tater
  • 453
  • 1
  • 6
  • 10
1

Previously I had same issue, can't loaded the url using Firefox version 45.0.1. The external JAR's is selenium-java-2.46.0. After upgrade the selenium server to selenium-java-2.53.0 (http://www.seleniumhq.org/download/) and update the other external JAR's in the project (some JAR are updated and removed in selenium version 53). Finally, I can loaded the URL successfully on Firefox 45.0.1 using selenium-java-2.53.0.

Dibo
  • 11
  • 2
  • For me it's just not working...and there seems no solution as I have tried many ways but same result... – dheeraj kateja Apr 05 '16 at 03:36
  • Selenium-java-2.46.0 contain 33 items in libs folder, i remove these items and replaced it with 11 new items in libs folder of selenium-java-2.53.0. I also replaced selenium-java-2.46.0.jar and selenium-java-2.46.0-srcs.jar with selenium-java-2.53.0.jar and selenium-java-2.53.0-srcs.jar. You can update it by right click on your project -> Properties -> Java build path, go to Libraries tab. Hope this can work for you. – Dibo Apr 05 '16 at 03:54
  • So u mean that there should be only selenium 2.53 jars for Java and rest should be removed? – dheeraj kateja Apr 05 '16 at 04:04
  • No, I mean all jar files from the extract zip file selenium 2.53 in (http://www.seleniumhq.org/download/) should be provided in the project – Dibo Apr 05 '16 at 05:12
  • I have added all the jars from lib folder of selenium 2.53.Still same result for me. – dheeraj kateja Apr 07 '16 at 15:09
  • @dheerajkateja I'm having the same issue with 2.5.3 and every FF version. Were you ever able to get around this? – David Pean Apr 25 '16 at 18:14
  • No bro,there is no solution it seems.I have tried many ways but no luck – dheeraj kateja Apr 25 '16 at 18:24
  • @dheerajkateja I installed maven via brew, how about you? – David Pean Apr 26 '16 at 13:24
  • Maven is in built in eclipse...this is a different issue.How come maven came in between all this – dheeraj kateja Apr 26 '16 at 13:34
  • just trying to figure out what is different about my environment. I have colleagues with pretty much same setup and it works for them – David Pean Apr 26 '16 at 14:10
  • @dheerajkateja I got mine working -- I was by default targeting Java 1.8 in the Runtime JRE. Installing 1.7 and specifying that allowed FF to work – David Pean May 02 '16 at 19:00
1

This combinations are working for me -

Firefox 45.0.1 + Selenium 2.53.1
Firefox 45.0.2 + Selenium 2.53.1
Firefox 47.0.1 + Selenium 2.53.1

Amit Baderia
  • 4,454
  • 3
  • 27
  • 19
0
gem 'selenium-webdriver', '2.53.0'

the above entry in the gemfile worked for me with Firefox 45.0.1 and ruby 2.0.0-p647.

Uresh K
  • 1,136
  • 11
  • 16
0

I downgraded Firefox to version 43 and it seems to solve the problem. Conclusion (..?) selenium 2.53 does not support Firefox 45.

I hope this helps

user2332195
  • 101
  • 1
  • 4
0

I downgraded to firefox 44.0.2 and it worked for me. To downgrade: 1. Unistall firefox 45.0.1 2. Unistall Mozilla Maintenance Service

Install: 1. firefox 44.0.2 I found it on: https://support.mozilla.org/en-US/kb/install-older-version-of-firefox

chaz
  • 1
0

Firefox 45 doesn't support selenium driver still. Firefox 44.0.2 is fine to deal with selenium, so go with it and it's working for me.

0

it was Firefox upgrade issue, Selenium 47 is not compatible with Firefox 44 and up.

I had to downgrade all the way to 39.

Geomatani
  • 71
  • 1
  • 1
  • 7
0

Try using firefox 46.0.1. It best matches with Selenium 2.53 Surely it will work for you.

https://ftp.mozilla.org/pub/firefox/releases/46.0.1/win64/en-US/

Mahbub Rahman
  • 1,295
  • 1
  • 24
  • 44
0

For RSpec and RubyMine users:

If your RSpec or Ruby tests are not talking to the browser, but the browser is opening and doing nothing this is likely because your selenium-webdriver is not up-to-date with the current browser.

Or this can be because there are multiple versions of the selenium-webdriver gem installed and it is using the oldest one by default.

Here you can see the multiple versions listed in RubyMine:

File > Preferences > Language & Frameworks > Ruby SDK & Gems

RubyMine preferences > Language & Frameworks > Ruby SDK & Gems

Go to terminal and then your project root where your gemfile is stored and type:

gem list

You will get a list with a line like the following:

selenium-webdriver (2.53.4, 2.44.0)

You can uninstall the old version using something like the following:

gem uninstall /Users/username/.rvm/gems/ruby-2.1.1@stillwell selenium-webdriver

Note: you can get the path by running gem environment

Then it will ask you the following:

Select gem to uninstall:

  1. selenium-webdriver-2.44.0
  2. selenium-webdriver-2.53.4
  3. All versions

If you don't have the version you need, to install a specific version run the following at the terminal prompt:

gem search selenium | grep webdriver

You should see something like the following:

selenium-webdriver (2.53.4)

Then you can install that specific version with the following in the terminal:

gem install selenium-webdriver -v 2.53.4

I also updated my FireFox browser.

I am using Capybara and RSpec. Generally, Capybara defaults to FireFox but if you are still having problems you may want to explicitly define the driver at the top of your .rb script.

Capybara.register_driver :firefox do |app|
 profile = Selenium::WebDriver::Firefox::Profile.new
 profile['browser.startup.homepage_override.mstone'] = 'ignore'
 profile['startup.homepage_welcome_url.additional'] = 'about:blank'
 Capybara::Selenium::Driver.new(app, :browser => :firefox, :profile => profile)
end
N D
  • 717
  • 6
  • 10