Sha256: f8626a62f05d4b41d7b7407a7f352dbd7c71bafda3320309c62d0666e01bacb7

Contents?: true

Size: 842 Bytes

Versions: 37

Compression:

Stored size: 842 Bytes

Contents

# The purpose of this test is to verify that IE has been manually
# configured to allow active content from local files.
# This setting is not really required for normal use of Watir, but
# it is essential for many of our unit tests.

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

class TC_AAA_Security_Settings < Test::Unit::TestCase
  def setup
    uses_page "div.html"
  end

  @@security_instructions = "\
You must change your IE security settings to run these tests.
Tools -> Internet Options -> Advanced -> Security -> 
'Allow active content to run in files on My Computer'"

  def test_active_content
    browser.span(:id, "span3").click
    value = browser.text_field(:name, "text2").value
    fail(@@security_instructions) if value == '0' 
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
watir-classic-3.0.0 unittests/security_setting_test.rb
watir-3.0.0.rc3 unittests/security_setting_test.rb
watir-3.0.0.rc2 unittests/security_setting_test.rb
watir-3.0.0.rc1 unittests/security_setting_test.rb
watir-2.0.4 unittests/security_setting_test.rb
watir-2.0.3 unittests/security_setting_test.rb
watir-2.0.2 unittests/security_setting_test.rb
watir-2.0.2.rc1 unittests/security_setting_test.rb
watir-2.0.1 unittests/security_setting_test.rb
watir-2.0.0 unittests/security_setting_test.rb
watir-2.0.0.rc3 unittests/security_setting_test.rb
watir-2.0.0.rc2 unittests/security_setting_test.rb
watir-1.9.2 unittests/security_setting_test.rb
watir-1.9.2.rc1 unittests/security_setting_test.rb
watir-1.9.1 unittests/security_setting_test.rb
watir-1.9.1.rc1 unittests/security_setting_test.rb
watir-1.9.0 unittests/security_setting_test.rb
watir-1.9.0.rc7 unittests/security_setting_test.rb
watir-1.9.0.rc6 unittests/security_setting_test.rb
watir-1.9.0.rc5 unittests/security_setting_test.rb