make sure dirver has something

This commit is contained in:
John Bintz 2012-11-29 06:54:38 -05:00
parent 98ffec349f
commit 118472bb7d
1 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,13 @@ require 'capybara/selenium/driver'
# make sure these classes exist on this end # make sure these classes exist on this end
[ Selenium::WebDriver::Error::StaleElementReferenceError, Selenium::WebDriver::Error::UnhandledError, Selenium::WebDriver::Error::ElementNotVisibleError ] [ Selenium::WebDriver::Error::StaleElementReferenceError, Selenium::WebDriver::Error::UnhandledError, Selenium::WebDriver::Error::ElementNotVisibleError ]
Before do
if Capybara.current_driver == :persistent_selenium
Capybara.server_port ||= '3001'
Capybara.app_host ||= "http://localhost:#{Capybara.server_port}"
end
end
Capybara.register_driver :persistent_selenium do |app| Capybara.register_driver :persistent_selenium do |app|
require 'drb' require 'drb'