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-1.9.0.rc4 unittests/security_setting_test.rb
watir-1.9.0.rc3 unittests/security_setting_test.rb
watir-1.9.0.rc2 unittests/security_setting_test.rb
watir-1.9.0.rc1 unittests/security_setting_test.rb
watir-1.8.1 unittests/security_setting_test.rb
watir-1.8.1.rc1 unittests/security_setting_test.rb
watir-1.8.0 unittests/security_setting_test.rb
watir-1.8.0.rc1 unittests/security_setting_test.rb
watir-1.7.1 unittests/security_setting_test.rb
watir-1.7.0 unittests/security_setting_test.rb
watir-1.7.0.rc1 unittests/security_setting_test.rb
watir-1.6.7 unittests/security_setting_test.rb
watir-1.6.7.rc1 unittests/security_setting_test.rb
watir-1.6.6 unittests/security_setting_test.rb
watir-1.6.6.rc2 unittests/security_setting_test.rb
watir-1.6.6.rc1 unittests/security_setting_test.rb
watir-1.6.2 unittests/security_setting_test.rb