== Why was this forked? The reason I forked this is because I am getting an error "Invalid argument - connect(2) (Errno::EINVAL)" on FreeBSD(8.2-STABLE FreeBSD) + firefox v12.0. Errno::EINVAL: Invalid argument - connect(2) # ./spec/support/shared_context_for_login.rb:4:in `login_user' My current fix is for the driver to wait if FF is loaded. Please see "https://github.com/rdeguzman/selenium-webdriver/blob/master/lib/selenium/webdriver/common/socket_poller.rb" The Gemfile should now contain: gem "selenium-webdriver", "2.21.2", :git => 'git://github.com/rdeguzman/selenium-webdriver.git' = selenium-webdriver This gem provides Ruby bindings for WebDriver and has been tested to work on MRI (1.8.7 through 1.9), JRuby and Rubinius. = INSTALL gem install selenium-webdriver = LINKS * http://rubygems.org/gems/selenium-webdriver * http://selenium.googlecode.com/svn/trunk/docs/api/rb/index.html * http://code.google.com/p/selenium/wiki/RubyBindings * http://code.google.com/p/selenium/issues/list = LICENSE Copyright 2009-2012 Software Freedom Conservancy Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.