Re: [Wtr-general] Intermittent RPC error

2006-10-12 Thread Norm
I determined that it was a timing thing with closing/opening browsers, I added 
a sleep 1 inbetween and haven't got the error in a couple of days. I think it 
is just going too fast for the system sometimes...
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4500messageID=13163#13163
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Intermittent RPC error

2006-10-12 Thread Adam Reed
Yep!  It's an issue with IE trying to re-open itself too quickly while
closing.  From what I've seen on the list and tried personally, the
sleep statement is the exact solution you're looking for.

Adam 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Norm
Sent: Thursday, October 12, 2006 3:15 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Intermittent RPC error

I determined that it was a timing thing with closing/opening browsers, I
added a sleep 1 inbetween and haven't got the error in a couple of
days. I think it is just going too fast for the system sometimes...
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4500messageID=13163#13163
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Intermittent RPC error

2006-09-22 Thread brian . kejser
Hi

Once and a while I get the following two errors:

WIN32OLERuntimeError: Unknown property or method: `visible'
HRESULT error code:0x800706be
  The remote procedure call failed.

WIN32OLERuntimeError: Unknown property or method `quit'
HRESULT error code:0x800706ba
  The RPC server is unavailable.

Is this caused by something I'm doing wrong or is this a flaw in Watir or
the Win32 Ruby library?

I'm using Watir 1.4.1 with Ruby 1.8.2-15.

Thanks




___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Intermittent RPC error

2006-09-22 Thread Bret Pettichord
[EMAIL PROTECTED] wrote:
 Hi

 Once and a while I get the following two errors:

 WIN32OLERuntimeError: Unknown property or method: `visible'
 HRESULT error code:0x800706be
   The remote procedure call failed.

 WIN32OLERuntimeError: Unknown property or method `quit'
 HRESULT error code:0x800706ba
   The RPC server is unavailable.

 Is this caused by something I'm doing wrong or is this a flaw in Watir or
 the Win32 Ruby library?

 I'm using Watir 1.4.1 with Ruby 1.8.2-15.

 Thanks
   

This is a flaw in Watir, for which there are a couple of workarounds.

This can happen in the following scenario

1. create browser
2. close browser
3. create browser
-- error sometimes happens here

The problem lies in the way IE is structured and the way that Watir 1.4 
interacts with it. Specifically, Watir creates a client windows that 
interacts with the IE RPC Server. This is not a web server, but rather 
the IE process running on your computer. When the last client to this 
server is closed, the server will also start closing, but this happens 
asynchronously. In your case, you are probably trying to get a new IE 
window, and it is trying to connect to the IE RPC server that is 
actually in the process of closing down.

The simplest workaround is to reuse IE windows instead of opening and 
closing them. Another workaround is to leave IE window open at the 
beginning of your session (it can be invisible) and then when you open 
and close windows, the IE RPC Server will never shutdown, because there 
always will be one window connected to it.

Perhaps the best solution is to start a separate IE process for each IE 
window. We have prototyped this approach in the Watir/Contrib directory 
of 1.5.1.1100.

Bret


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Intermittent RPC error

2006-09-22 Thread Charley Baker
I've never had this error, but there are a couple of threads on the
mailing list which might help you out:

http://www.mail-archive.com/wtr-general@rubyforge.org/msg04445.html
http://www.mail-archive.com/wtr-general@rubyforge.org/msg03870.html

-Charley

On 9/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi

 Once and a while I get the following two errors:

 WIN32OLERuntimeError: Unknown property or method: `visible'
 HRESULT error code:0x800706be
   The remote procedure call failed.

 WIN32OLERuntimeError: Unknown property or method `quit'
 HRESULT error code:0x800706ba
   The RPC server is unavailable.

 Is this caused by something I'm doing wrong or is this a flaw in Watir or
 the Win32 Ruby library?

 I'm using Watir 1.4.1 with Ruby 1.8.2-15.

 Thanks




 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general


 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Intermittent RPC error

2006-09-18 Thread brian . kejser
Hey

Once and a while I get the following two errors:

WIN32OLERuntimeError: Unknown property or method: `visible'
HRESULT error code:0x800706be
  The remote procedure call failed.

WIN32OLERuntimeError: Unknown property or method `quit'
HRESULT error code:0x800706ba
  The RPC server is unavailable.

Is this caused by something I'm doing wrong or is this a flaw in Watir or
the Win32 Ruby library?

I'm using Watir 1.4.1 with Ruby 1.8.2-15.

Thanks




___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general