I tried to run
BROWSER=firefox rspec spec
on a freshly created Volt App
and got this error:
Selenium::WebDriver::Error::WebDriverError:
unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
The app hangs and raises that error after a long wait.
Is Volt Framework not locking selenium webdriver down to the correct version?
So, the solution was to upgrade selenium-webdriver:
gem 'selenium-webdriver', '2.47.0'
Also, upgrading volt 0.9.4pre9 (or 0.9.5) will fix this as well.
gem 'volt', '0.9.4pre9'
Related
I have this code in my Cucumber Hooks file to run the ghost driver it was working until yesterday I start seeing the error message:
Before do
Selenium::WebDriver::PhantomJS.path = 'C:\phantomjs-2.1.1-windows\bin\phantomjs.exe'
#browser = Watir::Browser.start "https://www.google.com", :phantomjs
#browser.window.maximize
end
Error message:
LoadError: cannot load such file -- selenium/webdriver/phantomjs
Yes, we've removed support for PhantomJS as of Selenium 3.8.
The PhantomJS project is no longer being maintained. If you actually do need headless, please investigate either the Chrome or Firefox headless options.
For those who encounter this error, you can work around it by locking your selenium-webdriver version in your Gemfile like so:
gem 'selenium-webdriver', '~> 3.6.0'
and then bundle update to downgrade.
(You may not even have selenium-webdriver specified in your Gemfile currently if it's just being loaded as a dependency of watir or some other library.)
The long term fix, of course, is to move off of PhantomJS to Chrome or Firefox headless.
I'm trying to write a Shoes app that will call Chef classes and modules. To accomplish this, I'm using Shoes 3.2.21-gtk2 and using the following code before my Shoes app code:
Shoes.setup do
gem 'chef'
end
Shoes.app do
...
end
When I run the app from Shoes, it attempts to install chef, and even determines the latest version (12.0.3) however, I get the following error during the installation:
bad response Not Found 404 (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz)
This version of Shoes is using Ruby 2.1.5-p273, which satisfies the minimum requirement of the Chef gem: https://rubygems.org/gems/chef
Is there some bug in Shoes with its ssl code? Or am I missing something else?
I got this error too.
The error occurs when trying to install the "pry gem". In my case was a bug that happened in my old version of rubygems (2.4.6).
FIX:
1 - Install another version of rubygems
gem update --system 2.4.4
2 - Install pry
gem install pry
The error also happens with the 2.4.5 version of rubygems: https://github.com/rubygems/rubygems/issues/1120
I’m trying to use twitter gem and getting
Faraday::Builder is now Faraday::RackBuilder
when I run the code. Anybody else got this or have idea how to resolve it
I resolved this error by upgrading twitter gem to current stable. Seems like you use old version and it calls Faraday::Builder instead of Faraday::RackBuilder, which triggers this warning.
So there are 2 possible solutions:
To upgrade twitter gem version to stable, which uses Faraday::RackBuilder
To downgrade faraday gem version, where you suppose to use Faraday::Builder(0.8.x if I remember correctly)
I am new to development of Capybara with Rspec using Ruby with selenium. I have installed Caybara and installed RSpec also. But when I am trying to install it is giving an error "Couldn't locate Gemfile". How to rectify the error? How to locate the Gemfile. Is there any Tutorial for Capybara and Rspec to understand better about those?
I am installing those on Windows8.1Pro
I had working selenium with my firefox, but today morning when i ran my test i got the same error. I updated selenium-webdriver for current version ( 2.38 ), but i still have that error.
Selenium::WebDriver::Error::WebDriverError:
unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
# /home/user/.rvm/gems/ruby-2.0.0-p195#taxand/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/firefox/launcher.rb:79:in `connect_until_stable'
also
i checked it in my other project where i have 2.35 version and it also worked yesterday - and there it also doesn't work today ;o
So i suppose that is no selenium issue, but my FF can be broken? But i also tried to run it with custom firefox_path to older firefox versions, and the issue is the same :<
Any ideas?
I've found the same problem in Mac OS X Mavericks after I updated the Firefox 26.
I solved the problem by updating the selenium-webdriver gem
In your gemfile, replace your current selenium-webdriver gem line with
gem "selenium-webdriver", "~> 2.38.0"
In your console, gem update selenium-webdriver.
Then bundle install.
Try the running the test after.