Sha256: e1e02ceb99cab009c7b8139d0088e4c3ed4d1efa20b3c5183bbd5ca72044a7a1

Contents?: true

Size: 606 Bytes

Versions: 1

Compression:

Stored size: 606 Bytes

Contents

require 'test/unit/assertions'
include Test::Unit::Assertions

if ENV['SAFARIWATIR']
  require 'safariwatir'
  Browser = Watir::Safari
else
  case RUBY_PLATFORM
  when /darwin/
    require 'firewatir'
    Browser = FireWatir::Firefox
  when /win32|mingw/
    require 'watir'
    Browser = Watir::IE
  when /java/
    require 'celerity'
    Browser = Celerity::Browser
  else
    raise "This platform is not supported (#{PLATFORM})"
  end
end
 
 
 browser = Browser.new
 # "before all"
 Before do
   @browser = browser
   @environment = "http://"
 end
 
 # "after all"
 After do
   # @browser.close
 end
 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watircuke-0.0.1 features/support/env.rb