Use code from lib/capybara/selenium/driver.rb