[Wtr-general] [question] access denied OLE error code:80070005

Rodrigo Julian Martin rodrigo.martin at enratio.com
Tue May 9 14:46:18 EDT 2006


Brett, I've tried what you suggested in my script as follows:

 

require 'Watir'

include 'Watir'

class Watir::IE 

 attr_accessor error_checkers

end

 

$browser = IE.new

$browser.error_checkers = [] 

 

$browser = IE.attach(:title, "test")

 

 

And it throws me this output

 

Executing 'ruby -C "C:/Documents and Settings/Administrator/Desktop"
"test_popup"'

test_popup:3: undefined local variable or method `error_checkers' for
Watir::IE:Class (NameError)

Execution completed with exit code 1.

 

Am I doing something wrong? My watir version is 1.4.1

 

Thanks for your patience!

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 03:26 p.m.
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] [question] access denied OLE error
code:80070005

 

 

On 5/9/06, Rodrigo Julian Martin <rodrigo.martin at enratio.com> wrote:

One question Brett.. where should I put that code? On my script source
or in Watir.rb?


This code can really go anywhere. It modifies the base Watir::IE class,
but doesn't have be in the watir.rb file.

  class Watir::IE 
    attr_accessor error_checkers
  end

This code needs to run on your ie object after you have created it and
before you use it.

  ie.error_checkers = [] 


Bret

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/fc874ad3/attachment.html 


More information about the Wtr-general mailing list