Brett, I've tried what you suggested in my script as follows:
require 'Watir'
include 'Watir'
class Watir::IE
attr_accessor error_checkers
attr_accessor :error_checkers
end
#$browser = IE.new
Rearrange these lines
$browser = IE.attach(:title, "test")
$browser.error_checkers = []
Now see if it works.
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: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Bret Pettichord
Sent: Martes, 09 de Mayo de 2006 03:26 p.m.
To: [email protected]
Subject: Re: [Wtr-general] [question] access denied OLE error code:80070005
On 5/9/06, Rodrigo Julian Martin <[EMAIL PROTECTED]> 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
_______________________________________________
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
