Sha256: 7909ed4b8cefb331685cfd7e2c96978e07f608df0db2e7fb2c370abe2714d0aa

Contents?: true

Size: 270 Bytes

Versions: 5

Compression:

Stored size: 270 Bytes

Contents

module Druid
  module PersistantBrowser
    @@driver = false
    def self.get_browser
      if !@@driver
        @@driver = Watir::Browser.new :firefox if ENV['DRIVER'] == 'WATIR'
      end
      @@driver
    end

    def self.quit
      @@driver.quit
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
druid-ts-1.1.4 features/support/persistent_browser.rb
druid-ts-1.1.3 features/support/persistent_browser.rb
druid-ts-1.1.2 features/support/persistent_browser.rb
druid-ts-1.1.1 features/support/persistent_browser.rb
druid-ts-1.1.0 features/support/persistent_browser.rb