[Wtr-general] [question] access denied OLE error code:80070005
Rodrigo Julian Martin
rodrigo.martin at enratio.com
Tue May 9 12:50:28 EDT 2006
Great! You're welcome, thanks to you for the help..
One question Brett.. where should I put that code? On my script source or in Watir.rb?
Thanks in Advance
Rodrigo Julian Martin
________________________________
From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Bret Pettichord
Sent: Martes, 09 de Mayo de 2006 11:58 a.m.
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] [question] access denied OLE error code:80070005
Thanks fro the reference. I've added it to the FAQ
http://wiki.openqa.org/display/WTR/FAQ#access-denied
If my solution also works, lets also add it to the FAQ.
Bret
On 5/9/06, Rodrigo Julian Martin <rodrigo.martin at enratio.com> wrote:
Thanks Brett, I will try this code and let you know!
I would like to add that besides that the problematic banner is an iframe, it is from clickexperts, so it tracks info about who clicked it... And it violates this:
[ extracted from http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/xframe_scripting_security.asp ]
Since it is important to be able to navigate windows or frames to any URL beyond the domain restriction, these types of accesses are always permitted. Only access that attempts to read out or modify content is restricted. For instance, the href property might be assigned to cause navigation to occur, but this property cannot be read if the URL is of a different domain. This would allow one page to learn where the user has been browsing, and to allow this is a breach of the user's privacy.
And so, it throws the access denied OLE error when trying to load the page that contains that banner... The weird thing is that here @ work it doesn't showup, but in the customer environments yes...
I will try with your suggestions Brett, thank you so much!
Cheers
Rodrigo Julian Martin
________________________________
From: wtr-general-bounces at rubyforge.org [mailto: wtr-general-bounces at rubyforge.org <mailto:wtr-general-bounces at rubyforge.org> ] On Behalf Of Bret Pettichord
Sent: Lunes, 08 de Mayo de 2006 11:23 p.m.
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] [question] access denied OLE error code:80070005
This might fix your problem depending on the actual code that failed. (Show us more of your code if you need more help.)
class Watir::IE
attr_accessor error_checkers
end
ie.error_checkers = []
Bret
On 5/8/06, Rodrigo Julian Martin <rodrigo.martin at enratio.com> wrote:
Hello everybody!
When watir does a .wait for a page, it throws me the following error:
xecuting 'ruby -C "C:/Documents and Settings/testing/Desktop/[Desarrollo] Ensamble de Circuitos 08-05-2006" "ML_Circuito.rb"'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `method_missing': document (WIN32OLERuntimeError)
OLE error code:80070005 in <Unknown>
Access is denied.
HRESULT error code:0x80020009
Exception occurred. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `document'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1177:in `check_for_http_error'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1162:in `set_defaults'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `upto'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `set_defaults'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1159:in `call'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1512:in `run_error_checks'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1511:in `each'
... 6 levels...
from ML_Circuito.rb:411:in `each'
from ML_Circuito.rb:411
from ML_Circuito.rb:404:in `open'
from ML_Circuito.rb:404
Execution completed with exit code 1.
I guess that this happen because in the page, there is a banner which have code of clickexperts (another domain). I can't get the work around for this.. any help? I´ve tried adding that domain to the list of Trusted Sites, but it didn't help.
If I missed some info, please let me know.
Cheers!
Rodrigo Julian Martín
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/c192059e/attachment.html
More information about the Wtr-general
mailing list