Paul, here are the steps i used to produce the problem 1. IRB 2. create new IE window which should goto about:blank 3. issue command "ie.document.invoke('parentWindow').navigator.appVersion 4. I do not get the error 5. call ie.goto('http://localhost/doesnotexist.html') and I get a HTTP 404 not found in the browser 6. call ie.document.invoke('parentWindow').navigator.appVersion
This is where I get the error. It seems to work on every page except the error ones. I get the following error: 1) Error: test_1(TestCase): WIN32OLERuntimeError: navigator OLE error code:80070005 in <Unknown> Access is denied. HRESULT error code:0x80020009 Exception occurred. c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir.rb:1216:in `method_missing' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir.rb:1216:in `check_for_http_error' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir/contrib/page_checker.rb:26 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir.rb:1845:in `call' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir.rb:1845:in `run_error_checks' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir.rb:1845:in `each' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir.rb:1845:in `run_error_checks' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir.rb:1834:in `wait' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1162/./watir.rb:1688:in `goto' http_error.rb:13:in `test_1' for this script: require 'rubygems' require 'watir' require 'test/unit' require 'watir/contrib/page_checker' include Watir class TestCase < Test::Unit::TestCase def test_1 ie = IE.new ie.add_checker(PageCheckers::NAVIGATION_CHECKER) ie.goto('http://localhost/doesnotexist.html') end end --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6349&messageID=19893#19893 _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general