persistent_selenium/lib/persistent_selenium.rb
2012-11-26 11:36:43 -05:00

24 lines
318 B
Ruby

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