I'm in agreement with Michael here...  you may need to watch these
things run to debug something of this sort.

The error appears to be coming all the way from Win32OLE, so isn't
originating in your scripts but down much closer to the OS (of course
the scripts could still be doing something that causes this error, but
if so that happens 'earlier').  One possible issue could be a resource
constraint on the system in use.  If some scripts are not closing
browser instances, or if you are running everything on a single box
and your application has a memory leak, you could be getting into a
state where the OS doesn't have the free resources to open a browser.
You may also want to be sure that when scripts fail, that something is
cleaning up and closing the browser they had open etc..  otherwise a
large number of failing scripts could end up with a large number of
abandoned browsers and eventually use up the free memory.

On Oct 13, 11:24 am, Michael <[email protected]> wrote:
> We run automated watir tests remotely using psexec which allows us to
> attach to a specific user's session. If the VM/workstation reboots and this 
> user
> is not logged back on the tests will fail due to not being able to open 
> Internet
> Explorer.
>
> Good luck figuring out what is going on. Scheduling it to run while
> you're at the office, but have locked the computer or do whatever you do at
> night might help you debug it.
>
> On Thu, 13 Oct 2011 08:23:43 -0700 (PDT),
>
> sridhar wrote:
> > I think it is worth mentioning this. Out of all the scripts
> that were
> > schedules to run, Some of the scripts that deal with
>
> Watir::Browser.start(url) passed and some failed. When it started> failing all
>
> the subsequent scripts that deal with> Watir::Browser.start(url). failed.
>
> On Oct 13, 9:16 am, sridharwrote:
>
> >> Yesterday, I scheduled my watir scripts
>
> to run at 3 AM. Today When i came in the morning i saw that a bunch of scripts
> failed on Watir::Browser.start(url). But when i ran those individual scripts
> that failed one by one, they passed. Any idea why will it fail like that? 
> failed
> to create WIN32OLE object from `InternetExplorer.Application' HRESULT error
> code:0x80004005 Unspecified error (WIN32OLERuntimeError)
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb: 165:in
> `initialize' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:
> 165:in `new' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:
> 165:in `create_browser_window'
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:89:in
> `_new_window_init'
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:79:in
> `new_window' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:
> 103:in `start_window'
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:97:in `start'
> C:/Ruby/lib/ruby/gems/1.8/gems/commonwatir-1.7.1/lib/watir/browser.rb: 71:in
> `start' Thanks, Sridhar
>
> > -- Before posting, please read
>
> http://watir.com/support[1]. In short: search before you ask, be nice.
> [email protected] [2]http://groups.google.com/group/watir-general
> [3] [email protected] [4]
>
> Links:
> ------
> [1]http://watir.com/support
> [2] mailto:[email protected]
> [3]http://groups.google.com/group/watir-general
> [4]
> mailto:[email protected]

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to