[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Watir::IE.new problem

Bob Smyph

9/25/2008 11:54:00 AM

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
--
Posted via http://www.ruby-....

5 Answers

no surrender

1/10/2008 6:52:00 PM

0


"Mani Deli" <nothing@inter.com> wrote in message
news:pokco3hl0la22tidncp0kgtbak110ktgpn@4ax.com...
> On Thu, 10 Jan 2008 12:07:34 -0500, "no surrender"
> <no_surrender@never.net> wrote:
>
> >
> >"Front Office" <armistead_rap@bigfoot.com> wrote in message
> >news:G4ednbRIutUjrBvanZ2dnUVZ_qLinZ2d@comcast.com...
> >> Fox News: We Report -- Even if We Know It's False
> >>
> >>
> >>
>
>http://www.huffingto...paul-begala/fox-news-we-report-e_b_...
> >******
> >The Huffington-Puffington Bloviate!!! Surely you jest.
> >
> >
> >Dennis
> >
> Want the real news instead of the average truncated Crapitalist media
> bullshit filled with non-news drivel?
> Go to http://www.huffingto... & http://www.tru...
> http://www.tru... And follow the links.
> And the best essay site I've found so far, The American Prospect
> http://www.pro...
*****
Robert "The Socialism Hustler" Kustler, Manic Dildo!?!? No thanks, I want
logic, reason and truth in my non-fiction reading. Although perhaps I should
read him when I'm in the mood for escapist fantasy.

Dennis
>


Mani Deli

1/10/2008 10:27:00 PM

0

On Thu, 10 Jan 2008 13:51:42 -0500, "no surrender"
<no_surrender@never.net> wrote:

>> Want the real news instead of the average truncated Crapitalist media
>> bullshit filled with non-news drivel?
>> Go to http://www.huffingto... & http://www.tru...
>> http://www.tru... And follow the links.
>> And the best essay site I've found so far, The American Prospect
>> http://www.pro...
>*****
>Robert "The Socialism Hustler" Kustler, Manic Dildo!?!? No thanks, I want
>logic, reason and truth in my non-fiction reading.

This from Dennass who has Rush Limbaugh's dildo up his fascist ass!


> Although perhaps I should
>read him when I'm in the mood for escapist fantasy.
>
>Dennis
>>
>

RichTravsky

1/13/2008 4:39:00 AM

0

no surrender wrote:
>
> "Front Office" <armistead_rap@bigfoot.com> wrote in message
> news:G4ednbRIutUjrBvanZ2dnUVZ_qLinZ2d@comcast.com...
> > Fox News: We Report -- Even if We Know It's False
> >
> >
> >
> http://www.huffingtonpost.com/paul-begala/fox-news-we-report-e_b_...
> ******
> The Huffington-Puffington Bloviate!!! Surely you jest.

Didn't follow the link...

RT

Mani Deli

1/13/2008 3:16:00 PM

0

On Sat, 12 Jan 2008 21:39:09 -0700, Rich Travsky
<traRvEsky@hotmMOVEail.com> wrote:

>no surrender wrote:
>>
>> "Front Office" <armistead_rap@bigfoot.com> wrote in message
>> news:G4ednbRIutUjrBvanZ2dnUVZ_qLinZ2d@comcast.com...
>> > Fox News: We Report -- Even if We Know It's False
>> >
>> >
>> >
>> http://www.huffingto...paul-begala/fox-news-we-report-e_b_...
>> ******
>> The Huffington-Puffington Bloviate!!! Surely you jest.
>
>Didn't follow the link...
>
>RT

Want the real news instead of the average truncated Crapitalist media
bullshit filled with non-news drivel?
Go to http://www.huffingto... & http://www.tru...
http://www.tru... And follow the links.
And the best essay site I've found so far, The American Prospect
http://www.pro...

Bob Smyph

9/25/2008 12:02:00 PM

0

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'



Bob Smyph 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

--
Posted via http://www.ruby-....