Watir::IE.new problem

When trying to create a new IE instance my program keeps failing when
trying to open the IE page. Below is the error that I get from IE:

*Windows cannot acess the specified device, path, or file. You may not
have the appropriate permisions to access the item

then this one show up after about 60 of the one above
*An attempt was made to reference a token that does not exist.

below is the code that I am trying to execute

require ‘test/unit’
require ‘watir’
require ‘watir\contrib\enabled_popup’
require ‘date’

class TestCasesProfile < Test::Unit::TestCase

def test1
puts “before Watir::IE.new_process”
$ie = Watir::IE.new
$ie.speed = :fast
$ie.goto(“www.google.com”)
end

end

the error is coming up on “$ie = Watir::IE.new”

but if I change that line to “$ie = Watir::IE.new_process” the code
works

any help would be greatly appreciated

Also here is the error message that ruby spits out once I close all the
browser errors

  1. Error:
    test1(TestCasesProfile):
    WIN32OLERuntimeError: navigate
    OLE error code:800703F0 in

    HRESULT error code:0x80020009
    Exception occurred.
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/ie.rb:329:in
    method_missing' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/ie.rb:329:in goto’
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/ie.rb:81:in
    _new_window_init' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/ie.rb:75:in initialize’
    C:/ruby/internetTest.rb:23:in new' C:/ruby/internetTest.rb:23:in test1’

Bob S. wrote:

When trying to create a new IE instance my program keeps failing when
trying to open the IE page. Below is the error that I get from IE:

*Windows cannot acess the specified device, path, or file. You may not
have the appropriate permisions to access the item

then this one show up after about 60 of the one above
*An attempt was made to reference a token that does not exist.

below is the code that I am trying to execute

require ‘test/unit’
require ‘watir’
require ‘watir\contrib\enabled_popup’
require ‘date’

class TestCasesProfile < Test::Unit::TestCase

def test1
puts “before Watir::IE.new_process”
$ie = Watir::IE.new
$ie.speed = :fast
$ie.goto(“www.google.com”)
end

end

the error is coming up on “$ie = Watir::IE.new”

but if I change that line to “$ie = Watir::IE.new_process” the code
works

any help would be greatly appreciated