# Watir::IE.new problem

**URL:** <https://www.ruby-forum.com/t/watir-ie-new-problem/149499>\
**Category:** Ruby\
**Created:** [September 25, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/watir-ie-new-problem/149499 "2008-09-25T13:54:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [September 25, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/watir-ie-new-problem/149499/1 "2008-09-25T13:54:35Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [September 25, 2008, 2:02pm UTC](https://www.ruby-forum.com/t/watir-ie-new-problem/149499/2 "2008-09-25T14:02:35Z")

</div>

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](http://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
