Fixes for modern Capybara versions.
This commit is contained in:
parent
5e205ea347
commit
02b1e7553e
@ -30,6 +30,10 @@ module PersistentSelenium
|
|||||||
{}
|
{}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def browser_initialized?
|
||||||
|
false
|
||||||
|
end
|
||||||
|
|
||||||
def visit(path)
|
def visit(path)
|
||||||
if !path[/^http/]
|
if !path[/^http/]
|
||||||
path = @app_host + path
|
path = @app_host + path
|
||||||
|
@ -7,6 +7,14 @@ require 'capybara/selenium/driver'
|
|||||||
Capybara.register_driver :persistent_selenium do |app|
|
Capybara.register_driver :persistent_selenium do |app|
|
||||||
require 'drb'
|
require 'drb'
|
||||||
|
|
||||||
|
module DRb
|
||||||
|
class DRbObject
|
||||||
|
def method(name)
|
||||||
|
method_missing(:method, name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
DRb.start_service
|
DRb.start_service
|
||||||
browser = DRbObject.new nil, PersistentSelenium.url
|
browser = DRbObject.new nil, PersistentSelenium.url
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user