I have installed Watir via the Windows Installer for Watir 1.4.1 link. (http://rubyforge.org/frs/download.php/5677/watir-1.4.1.exe)
This is my first script: watir_cboe.rb: =================================================== #!c:/ruby/bin/ruby -w # -*- coding: ISO-8859-1 -*- require 'watir' include Watir site = "http://cboe.com" ie = Watir::IE.start(site) =================================================== output of the script: ===================================================== W, [05-Feb-2007 13:31:46#3116] WARN -- : frame error in waitdocument OLE error code:80070005 in <Unknown> Access is denied. HRESULT error code:0x80020009 Exception occurred. c:\ruby\lib\ruby\site_ruby\1.8/watir.rb:1405:in `method_missing' c:\ruby\lib\ruby\site_ruby\1.8/watir.rb:1405:in `wait' c:\ruby\lib\ruby\site_ruby\1.8/watir.rb:1404:in `upto' c:\ruby\lib\ruby\site_ruby\1.8/watir.rb:1404:in `wait' c:\ruby\lib\ruby\site_ruby\1.8/watir.rb:1254:in `goto' c:\ruby\lib\ruby\site_ruby\1.8/watir.rb:1095:in `start' C:\Documents and Settings\Owner\My Documents\My Projects\Ruby\watir\watir_cboe.rb:8 Program exited with code 0 ======================================================== Result of running the script. The browser opens and connects to the specified site. Once this occurs the script terminates with the above output. I can open the browser's window to the http://cboe.com webpage. Login is not a requirement to navigate to other pages on this site. Login is require only if you want to access pages specific to your account. I am using ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32] and Internet Explorer 7 (version:7.0.5730.11) Basically the above script result should not occur, but then I am total newbie to Watir. I realize that I probably could workaround with a begin , rescue, end block. But I am trying to understand why the WARN message occurs and what to do to prevent the message from occurring. Than you for any assistance you may provide. _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
