Sha256: 413ce5e161c31cef216a5c3e1b8ca9484711989f24971328191f8ed42b71bd30

Contents?: true

Size: 432 Bytes

Versions: 35

Compression:

Stored size: 432 Bytes

Contents

# setup/browser
require 'watir/browser'
case Watir.options[:browser]
when 'ie'
  $LOAD_PATH.unshift File.expand_path($watir_dev_lib)
when 'firefox'
  $LOAD_PATH.unshift File.expand_path($firewatir_dev_lib)
end
$browser = Watir::Browser.new

# close browser at completion of the tests
# the at_exit execute before loading test/unit, otherwise IE will close *before* the tests run.
at_exit {$browser.close if $browser}

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
commonwatir-1.9.0.rc3 unittests/setup/browser.rb
commonwatir-1.9.0.rc2 unittests/setup/browser.rb
commonwatir-1.9.0.rc1 unittests/setup/browser.rb
commonwatir-1.8.1 unittests/setup/browser.rb
commonwatir-1.8.1.rc1 unittests/setup/browser.rb
commonwatir-1.8.0 unittests/setup/browser.rb
commonwatir-1.8.0.rc1 unittests/setup/browser.rb
commonwatir-1.7.1 unittests/setup/browser.rb
commonwatir-1.7.0 unittests/setup/browser.rb
commonwatir-1.7.0.rc1 unittests/setup/browser.rb
commonwatir-1.6.7 unittests/setup/browser.rb
commonwatir-1.6.7.rc1 unittests/setup/browser.rb
commonwatir-1.6.6 unittests/setup/browser.rb
commonwatir-1.6.6.rc2 unittests/setup/browser.rb
commonwatir-1.6.6.rc1 unittests/setup/browser.rb