Sha256: b539cd2e447d4b183f68e7067e97f5bdd5e0f87f4ede9ff2672aa09c6aa0b712
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
# feature tests for closed windows # revision: $Revision: 958 $ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..') if $0 == __FILE__ 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 $ie.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-1.5.5 | unittests/windows/close_window_test.rb |
watir-1.5.6 | unittests/windows/close_window_test.rb |