Sha256: 16d09e558049a4eb0c452211cd75084fc663f79aaa1cf1b7c9c4f9e5944e1066
Contents?: true
Size: 568 Bytes
Versions: 2
Compression:
Stored size: 568 Bytes
Contents
module SeleniumConnect extend self def configure yield configuration end def configuration @configuration = Configuration.new end attr_reader :server, :driver def localhost? case @configuration.host when "localhost" then true else false end end def run if localhost? @server = Server.new(@configuration) server.start end @driver = Runner.new(@configuration).driver end def finish driver.quit if localhost? then server.stop end end alias :start :run alias :stop :finish end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
selenium-connect-1.2.1 | lib/selenium-connect/selenium-connect.rb |
selenium-connect-1.2.0 | lib/selenium-connect/selenium-connect.rb |