Sha256: 42aaf2c9991125c192e20194fc7204b00fa501f6ce664f434183731b4d24c9c2

Contents?: true

Size: 569 Bytes

Versions: 33

Compression:

Stored size: 569 Bytes

Contents

# feature tests for closed windows

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..') unless $SETUP_LOADED
require 'unittests/setup'

class TC_CloseWindow < Watir::TestCase
  execute :sequentially
  
  def setup
    goto_page "new_browser.html"
  end
  
  # reproduces defect http://jira.openqa.org/browse/WTR-16
  def test_close_window_with_button
    browser.link(:text, 'New Window').click
    ie_new = Watir::IE.attach(:title, 'Pass Page')
    assert(ie_new.text.include?('PASS'))
    assert_nothing_raised {ie_new.close}
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
watir-classic-3.0.0 unittests/windows/close_window_test.rb
watir-3.0.0.rc3 unittests/windows/close_window_test.rb
watir-3.0.0.rc2 unittests/windows/close_window_test.rb
watir-3.0.0.rc1 unittests/windows/close_window_test.rb
watir-2.0.4 unittests/windows/close_window_test.rb
watir-2.0.3 unittests/windows/close_window_test.rb
watir-2.0.2 unittests/windows/close_window_test.rb
watir-2.0.2.rc1 unittests/windows/close_window_test.rb
watir-2.0.1 unittests/windows/close_window_test.rb
watir-2.0.0 unittests/windows/close_window_test.rb
watir-2.0.0.rc3 unittests/windows/close_window_test.rb
watir-2.0.0.rc2 unittests/windows/close_window_test.rb
watir-1.9.2 unittests/windows/close_window_test.rb
watir-1.9.2.rc1 unittests/windows/close_window_test.rb
watir-1.9.1 unittests/windows/close_window_test.rb
watir-1.9.1.rc1 unittests/windows/close_window_test.rb
watir-1.9.0 unittests/windows/close_window_test.rb
watir-1.9.0.rc7 unittests/windows/close_window_test.rb
watir-1.9.0.rc6 unittests/windows/close_window_test.rb
watir-1.9.0.rc5 unittests/windows/close_window_test.rb