As a followup to my previous question I closed the browser window before killing the running process and I get this additional information at the command line

C:\Documents and Settings\Administrator\My Documents\Watir Project\1.5.1.bonus\examples>ruby googleSearch_newprocess.rb
Process ID: 7644
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1100/./watir/contrib/ie-new-process.rb:44:in `ole_get_methods': Failed to GetContainingTypeLib (RuntimeErro
r)
    HRESULT error code:0x80010108
      The object invoked has disconnected from its clients.     from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1100/./watir/contrib/ie-new-process.rb
:44:in `window'
        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1100/./watir/contrib/ie-new-process.rb:43:in `window'
        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1100/./watir/contrib/ie-new-process.rb:67:in `new_process'
        from googleSearch_newprocess.rb:23

Hope this is helpful.


Regards,

Scott

"The supreme misfortune is when theory outstrips performance."

"There are three classes of people.
Those who see;
 those who see when they are shown;
those who do not see."

- Leonardo da Vinci

Scott Snyder
Senior Software Engineer
WPLC Performance
919-543-6697  T/L  441-6697


----- Forwarded by Scott H Snyder/Raleigh/IBM on 09/26/2006 10:41 AM -----
Scott H Snyder/Raleigh/IBM

09/26/2006 10:31 AM

To
[EMAIL PROTECTED]
cc
Subject
New process not working as I expected




I installed the new gem 1.5.1.1100 and wanted to test creating separate IE processes.
I took the googleSearch.rb script and added the require statement for the new capabilities as well as changing the Watir:IE.new line to Watir:IE.new_process, and adding an ie.kill at the end.

What happpened was that a new browser window appears and the script stops at the new_process line.
The debug line prints a process id which I cannot find as a running process on my system.
I can only regain control of my command line by hitting CTRL-C and then I get the following stack trace:

C:\Documents and Settings\Administrator\My Documents\Watir Project\1.5.1.bonus\examples>ruby googleSearch_newprocess.rb
Process ID: 7480
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1100/./watir/contrib/ie-new-process.rb:44:in `window': Interrupt
        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1100/./watir/contrib/ie-new-process.rb:43:in `window'
        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1100/./watir/contrib/ie-new-process.rb:67:in `new_process'
        from googleSearch_newprocess.rb:23

Seems as if the system is trying to attach to a process that is no longer there and so hangs.
I am on WinXP and running IE 6.0.2900.2180.on SP2.

Am I doing something incorrectly?
Is this a defect that needs to be investigated?




Scott

"The supreme misfortune is when theory outstrips performance."

- Leonardo da Vinci

Scott Snyder
WPLC Performance


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to