Sha256: 70cbb7077eb68b82261c6f25a13c867c21e63f42c47026ae097ca6a824bd3871

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 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

1 entries across 1 versions & 1 rubygems

Version Path
watir-1.6.5 unittests/security_setting_test.rb