Sha256: 9c2bed6273dbae6b403b88d7dfc063f770bdc185fe3b0ed5b6c57fb7b08182f6

Contents?: true

Size: 368 Bytes

Versions: 14

Compression:

Stored size: 368 Bytes

Contents

module PageObject
  module PersistantBrowser
    @@browser = false
    def self.get_browser
      if !@@browser
         @@browser =  Watir::Browser.new :firefox if ENV['DRIVER'] == 'WATIR'
         @@browser =  Selenium::WebDriver.for :firefox if ENV['DRIVER'] == 'SELENIUM'
      end
      @@browser
    end
    def self.quit
      @@browser.quit
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
page-object-0.7.2 features/support/persistent_browser.rb
page-object-0.7.1 features/support/persistent_browser.rb
page-object-0.7.0 features/support/persistent_browser.rb
page-object-0.6.9 features/support/persistent_browser.rb
page-object-0.6.8 features/support/persistent_browser.rb
page-object-0.6.7 features/support/persistent_browser.rb
page-object-0.6.6 features/support/persistent_browser.rb
page-object-0.6.5 features/support/persistent_browser.rb
page-object-0.6.4 features/support/persistent_browser.rb
page-object-0.6.3 features/support/persistent_browser.rb
page-object-0.6.2 features/support/persistent_browser.rb
page-object-0.6.1 features/support/persistent_browser.rb
page-object-0.6 features/support/persistent_browser.rb
page-object-0.5.5 features/support/persistent_browser.rb