24 lines
318 B
Ruby
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
|