Watir::IE.new problem

B

Bob Smyph

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
 
B

Bob Smyph

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 <Unknown>
<No Description>
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'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top