From: Mike Date: 2007-02-19T23:15:10+09:00 Subject: Re: Watir - Where can I get the latest copy of JavascriptClick.htm? On Feb 17, 10:44 am, "Bret Pettichord" wrote: > On Feb 16, 12:28 pm, "Mike" wrote: > > > 339 tests, 300 assertions, 2 failures, 279 errors > > > I first noticed a problem during the "pass.html" page. A pop-up > > window with the text "The webpage you are viewing is trying to close > > the window" /n "Do you want to close this window?" and two buttons: > > "Yes" and "No" were displayed. The unit test hangs at this point. > > After waiting a inute plus I pressed "Yes". The unit test continued > > until a stream of error messages appeared in the command box. The > > pattern of pass, fail, and error results reported was: > > ......................................................EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE...EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFEE.EEEEEEE.F.....EEEE > > > I am running on WindowsXP SP2 with latest maintenace. Ruby is version > > 1.8.5-p12. > > You are running the right version. > > 1. Try running the core tests (core_tests.rb), which run more > reliably. The core tests ran flawlessly; 200 tests, 1093 assertions, 0 failures, 0 errors Thank you for your help in this matter. I very much appreciate it. > 2. I think you'll need to adjust one of your IE settings to avoid the > error you ran into. I just looked through them and couldn't find > anything relevant, so i'm not totally sure. I agree that if it runs correctly on your end then it is likely something on my end; perhaps I am missing an entry in my system path? C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1158\unittests>set path Path=c:\ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS \System32\Wbem;C:\Prog ram Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Common Files\Adap tec Shared\System;C:\Program Files\Common Files\GTK\2.0\bin;C: \MSSQL7\BINN;c:\Pr ogram Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files \Support Tools\ PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.RB;.RBW >Can you tell us which test > actually encountered this problem (i.e. the first error)? Here are the first three: Loaded suite C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/ all_tests Started ......................................................EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE...EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFEE.EEEEEEE.F.....EEEE Finished in 166.112 seconds. 1) Error: test_alert_without_bonus_script(TC_Dialog_Test): Watir::Exception::UnknownObjectException: C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/../watir/ dialog.rb:37:in `click' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/../ unittests/dialog_test.rb:25:in `test_alert_without_bonus_script' 2) Error: test_button_name_not_found(TC_Dialog_Test): WIN32OLERuntimeError: navigate OLE error code:800700AA in HRESULT error code:0x80020009 Exception occurred. C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/../ watir.rb:1692:in `method_missing' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/../ watir.rb:1692:in `goto' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/../ unittests/dialog_test.rb:12:in `setup' 3) Error: test_confirm_ok(TC_Dialog_Test): WIN32OLERuntimeError: navigate OLE error code:800700AA in HRESULT error code:0x80020009 Exception occurred. C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/../ watir.rb:1692:in `method_missing' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/../ watir.rb:1692:in `goto' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/unittests/../ unittests/dialog_test.rb:12:in `setup' > > Bret