fixes for connection problems

This commit is contained in:
John Bintz 2012-11-27 07:27:21 -05:00
parent 24d7eccfe1
commit 29de0c6e30
2 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,9 @@ module PersistentSelenium
def set_app_host(host)
@app_host = host
end
def load_splash_page
browser.navigate.to("data:text/html;base64,#{Base64.encode64(starting_page)}")
end

View File

@ -1,10 +1,14 @@
require 'persistent_selenium'
require 'capybara/selenium/driver'
# make sure these classes exist on this end
[ Selenium::WebDriver::Error::StaleElementReferenceError, Selenium::WebDriver::Error::UnhandledError, Selenium::WebDriver::Error::ElementNotVisibleError ]
Capybara.register_driver :persistent_selenium do |app|
require 'drb'
DRb.start_service
browser = DRbObject.new nil, PersistentSelenium.url
browser = DRbObject.new nil, PersistentSelenium.url
server = Capybara::Server.new(app)
server.boot