persistent_selenium/lib/persistent_selenium.rb
2013-04-09 11:37:14 -04:00

25 lines
347 B
Ruby

require "persistent_selenium/version"
require 'selenium-webdriver'
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