Sha256: 535fdb9fbab4bf5e0c9184fd350961e33ee577355dd8c21ce00abfd1fbc177f1

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

module Symbiont
  module Browser

    @@browser = false

    def self.start
      unless @@browser
        target = ENV['BROWSER']
        @@browser = watir_browser(target)
      end
      @@browser
    end

    def self.stop
      @@browser.quit if @@browser
    end

  private

    def self.watir_browser(target)
      Watir::Browser.new(target.to_sym)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lucid-0.0.9 lib/lucid/generators/project/browser-symbiont.rb
lucid-0.0.8 lib/lucid/generators/project/browser-symbiont.rb
lucid-0.0.7 lib/lucid/generators/project/browser-symbiont.rb
lucid-0.0.6 lib/lucid/generators/project/browser-symbiont.rb
lucid-0.0.5 lib/lucid/generators/project/browser-symbiont.rb