Sha256: dd705776d6bba71e2efcbc6eba7f4a0b0966ca0eaabd3c3d99a0781ca90bfc51

Contents?: true

Size: 516 Bytes

Versions: 5

Compression:

Stored size: 516 Bytes

Contents

# feature tests for navigation errors
# revision: $Revision: 958 $

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__
require 'unittests/setup'

class TC_NavigateException < Test::Unit::TestCase
  include Watir
  
  def test_http_errors
    assert_raises(NavigationException) { $ie.goto('http://localhost:3001') }        # Cannot find server or DNS Error
    assert_raises(NavigationException) { $ie.goto('http://www.fxruby.org/dfdf' ) }  # HTTP 404 - File not found
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
watir-1.5.2 unittests/other/navigate_exception_test.rb
watir-1.5.3 unittests/other/navigate_exception_test.rb
watir-1.5.4 unittests/other/navigate_exception_test.rb
watir-1.5.6 unittests/other/navigate_exception_test.rb
watir-1.5.5 unittests/other/navigate_exception_test.rb