Sha256: 6afb209382457063a2244023632f1fc50d47d08cde735f0d669cea216313b0ef

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

# feature tests for closed windows
# revision: $Revision: 958 $

$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

1 entries across 1 versions & 1 rubygems

Version Path
watir-1.6.5 unittests/windows/close_window_test.rb