25 lines
347 B
Ruby
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
|