[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Watir code problem & http

jabowen

8/6/2007 2:05:00 AM

I'm trying to use Watir and of course being a none
programmer I need help understanding the http source
code. Can someone point me to a good http book.
---------------------------------------------------
I get the following error when opening a web page with
Watir.
W, [05-Aug-2007 19:58:20#5180] WARN -- : frame error
in waitdocument
OLE error code:80070005 in <Unknown>
Access is denied.


HRESULT error code:0x80020009
Exception occurred.
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1405:in
`method_missing'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1405:in
`wait'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1404:in
`upto'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1404:in
`wait'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1254:in
`goto'
open_web.rb:5
------------------------------------------
require 'watir' # the watir controller
include Watir

ie = Watir::IE.new
ie.goto("http://finance.yahoo.com/charts#chart2:symbol=xle;range=3m;ind...(10,20)+split+macd+volumema(20);charttype=ohlc;crosshair=on;logscale=on;source=undefined")
#ie.close()



____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monop...

1 Answer

Paul Rogers

8/7/2007 4:55:00 PM

0

On Aug 5, 8:04 pm, Jeffrey Bowen <ja_bo...@yahoo.com> wrote:
> I'm trying to use Watir and of course being a none
> programmer I need help understanding the http source
> code. Can someone point me to a good http book.
> ---------------------------------------------------
> I get the following error when opening a web page with
> Watir.
> W, [05-Aug-2007 19:58:20#5180] WARN -- : frame error
> in waitdocument
> OLE error code:80070005 in <Unknown>
> Access is denied.
>
> HRESULT error code:0x80020009
> Exception occurred.
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1405:in
> `method_missing'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1405:in
> `wait'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1404:in
> `upto'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1404:in
> `wait'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1254:in
> `goto'
> open_web.rb:5
> ------------------------------------------
> require 'watir' # the watir controller
> include Watir
>
> ie = Watir::IE.new
> ie.goto("http://finance.yahoo.com/charts#chart2:symbol=xle;range=3m;indicator...)
> #ie.close()
>
> ____________________________________________________________________________________
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.http://get.games.yahoo.com/proddesc?gamekey=monop...

you should post this to the watir list ( http://groups.google.ca/group/watir-gener...
)
but, the error you see is due to there being some iframes on the page,
and Internet explorer prevents all script from from accessing items in
a different domain.
There arent any books on watir, an html book ( or http://w3sc...
) might be a help

Paul

Paul