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-classic-3.0.0 unittests/minmax_test.rb
watir-3.0.0.rc3 unittests/minmax_test.rb
watir-3.0.0.rc2 unittests/minmax_test.rb
watir-3.0.0.rc1 unittests/minmax_test.rb
watir-2.0.4 unittests/minmax_test.rb
watir-2.0.3 unittests/minmax_test.rb
watir-2.0.2 unittests/minmax_test.rb
watir-2.0.2.rc1 unittests/minmax_test.rb
watir-2.0.1 unittests/minmax_test.rb
watir-2.0.0 unittests/minmax_test.rb
watir-2.0.0.rc3 unittests/minmax_test.rb
watir-2.0.0.rc2 unittests/minmax_test.rb
watir-1.9.2 unittests/minmax_test.rb
watir-1.9.2.rc1 unittests/minmax_test.rb
watir-1.9.1 unittests/minmax_test.rb
watir-1.9.1.rc1 unittests/minmax_test.rb
watir-1.9.0 unittests/minmax_test.rb
watir-1.9.0.rc7 unittests/minmax_test.rb
watir-1.9.0.rc6 unittests/minmax_test.rb
watir-1.9.0.rc5 unittests/minmax_test.rb