Sha256: b4876f2e2d0f05102ebc307c715f3386cf4c4d73a98ed741a95acaa609c8437e

Contents?: true

Size: 526 Bytes

Versions: 203

Compression:

Stored size: 526 Bytes

Contents

require 'spec/expectations'

if ENV['FIREWATIR']
  require 'firewatir'
  Browser = FireWatir::Firefox
else
  case RUBY_PLATFORM
  when /darwin/
    require 'safariwatir'
    Browser = Watir::Safari
  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

# "before all"
browser = Browser.new

Before do
  @browser = browser
end

# "after all"
at_exit do
  browser.close
end

Version data entries

203 entries across 203 versions & 16 rubygems

Version Path
aslakhellesoy-cucumber-0.3.97 examples/watir/features/support/env.rb
aslakhellesoy-cucumber-0.3.98 examples/watir/features/support/env.rb
aslakhellesoy-cucumber-0.3.99 examples/watir/features/support/env.rb
cavalle-cucumber-0.2.3.3.1 examples/watir/features/support/env.rb
cavalle-cucumber-0.2.3.3.2 examples/watir/features/support/env.rb
dwaite-cucumber-0.3.101 examples/watir/features/support/env.rb
engineyard-cucumber-0.3.101 examples/watir/features/support/env.rb
fcoury-cucumber-0.2.3.1 examples/watir/features/support/env.rb
jwilger-cucumber-0.3.11.200906161550 examples/watir/features/support/env.rb
jwilger-cucumber-0.3.11.200907091518 examples/watir/features/support/env.rb
kosmas58-cucumber-0.1.100.5 examples/watir/features/support/env.rb
kosmas58-cucumber-0.1.16.5 examples/watir/features/support/env.rb
kosmas58-cucumber-0.1.16.6 examples/watir/features/support/env.rb
kosmas58-cucumber-0.1.99.21 examples/watir/features/support/env.rb
kosmas58-cucumber-0.1.99.23 examples/watir/features/support/env.rb
kosmas58-cucumber-0.2.0.1 examples/watir/features/support/env.rb
kosmas58-cucumber-0.2.0 examples/watir/features/support/env.rb
kosmas58-cucumber-0.2.2.1 examples/watir/features/support/env.rb
kosmas58-cucumber-0.2.3.3 examples/watir/features/support/env.rb
kosmas58-cucumber-0.3.100 examples/watir/features/support/env.rb