Reputation: 161
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
Upvotes: 8
Views: 17688
Reputation: 4892
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
Upvotes: 1
Reputation: 737
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
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:
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
Upvotes: 0
Reputation: 453
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.
Upvotes: 5
Reputation: 1343
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/
Upvotes: 0
Reputation: 11
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.
Upvotes: 1
Reputation: 954
Update to selenium server 2.53 solves the problem. http://www.seleniumhq.org/download/
Upvotes: 6
Reputation: 71
it was Firefox upgrade issue, Selenium 47 is not compatible with Firefox 44 and up.
I had to downgrade all the way to 39.
Upvotes: 0
Reputation: 1
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.
Upvotes: 0
Reputation: 1
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
Upvotes: 0
Reputation: 141
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
Upvotes: 0
Reputation: 1136
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.
Upvotes: 0