Sha256: e5cf89e68b175f6f950fc10c2f121bba0b14cca5d85059158249d8eff6b0947b

Contents?: true

Size: 897 Bytes

Versions: 24

Compression:

Stored size: 897 Bytes

Contents

# feature tests for minimizing and maximizing IE windows

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

class TC_MinMax< Test::Unit::TestCase
  tags :must_be_visible
  def setup
    goto_page 'pass.html'
  end
  def teardown
    browser.restore
  end
  def test_minimimum
    browser.minimize
    assert browser.minimized?
  end
  def test_maximum
    browser.maximize
    assert !browser.minimized?
  end
  def test_activate
    browser.activate
    assert browser.active?
    begin
      new_browser = Watir::IE.start($htmlRoot + 'blankpage.html')
      assert new_browser.active?
      assert !browser.active?
      browser.activate
      browser.activate   # bug in rautomation? It's in front just not activated
      assert browser.active?
    ensure
      new_browser.close
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
watir-1.9.0.rc4 unittests/minmax_test.rb
watir-1.9.0.rc3 unittests/minmax_test.rb
watir-1.9.0.rc2 unittests/minmax_test.rb
watir-1.9.0.rc1 unittests/minmax_test.rb