Reputation: 21
I started getting this error after upgrading to selenium-webdriver gem 2.22.1.
b = Watir::Browser.new :firefox
Basically the browser is not launched ( OSX 10.6.8, ruby 1.8.7 ) and a ruby debug mode showed the below output.
Exception `SocketError' at /Library/Ruby/Gems/1.8/gems/selenium-webdriver-2.22.1/lib/selenium/webdriver/common/platform.rb:153 - getaddrinfo: nodename nor servname provided, or not known
I went through the similar issue reported here and tried the solutions such as making sure localhost entry is present in /etc/hosts and the port is not used up by any other processes etc.
Let me know any more info is required.
Upvotes: 1
Views: 1979
Reputation: 21
Apparently this was a bug, and is now fixed in selenium-webdriver 2.22.2
Upvotes: 1