I've just checked in a change to trunk that allows this simpler code to avoid this problem with future versions:
ie.disable_checker(NAVIGATION_CHECKER)
I'm actually thinking about providing a more general mechanism for adding or removing methods from being automatically executed after every page load. I really need it for the lazy evaluation as well as to de-couple the xpath support.
Bret
On 5/8/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
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 = []
BretOn 5/8/06, Rodrigo Julian Martin < [EMAIL PROTECTED]> 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
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
