persistent_selenium/lib/persistent_selenium.rb

24 lines
318 B
Ruby
Raw Normal View History

2012-11-26 16:36:43 +00:00
require "persistent_selenium/version"
module PersistentSelenium
class << self
attr_writer :port, :browser
def port
@port ||= 9854
end
def browser
@browser ||= :firefox
end
def url
"druby://localhost:#{port}"
end
def configure
yield self
end
end
end