Sha256: 697002c9329b688811aaba5ec2c94c8b84ef9f5ad1bec39f2846eab9e9b8530c

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

# feature tests for minimizing and maximizing IE windows
# revision: $Revision$

$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
  end
  def test_maximum
    browser.maximize
  end
  def test_front
    assert browser.front?
    ie2 = Watir::IE.start($htmlRoot + 'blankpage.html')
    assert ie2.front?
    assert ! browser.front?
    browser.bring_to_front
    assert browser.front?
    ie2.close
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-1.6.5 unittests/minmax_test.rb