# Watir code problem & http

**URL:** <https://www.ruby-forum.com/t/watir-code-problem-http/111329>\
**Category:** Ruby\
**Created:** [August 6, 2007, 4:05am UTC](https://www.ruby-forum.com/t/watir-code-problem-http/111329 "2007-08-06T04:05:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorjeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Post date:** [August 6, 2007, 4:05am UTC](https://www.ruby-forum.com/t/watir-code-problem-http/111329/1 "2007-08-06T04:05:07Z")

</div>

## 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   
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=sma(10,20)+split+macd+volumema(20);charttype=ohlc;crosshair=on;logscale=on;source=undefined](http://finance.yahoo.com/charts#chart2:symbol=xle;range=3m;indicator=sma(10,20)+split+macd+volumema(20);charttype=ohlc;crosshair=on;logscale=on;source=undefined)”)  
#ie.close()

---

<div class="post-metadata">

**Author:** ![rorjeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Post date:** [August 6, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/watir-code-problem-http/111329/2 "2007-08-06T20:32:06Z")

</div>

Jeff,  
This happens in Watir when your page has an iframe with a src attribute  
in  
another domain. (ie an ad) Please take a look at watir’s documentation  
for  
how to suppress these warnings.

[http://wiki.openqa.org/display/WTR/FAQ](http://wiki.openqa.org/display/WTR/FAQ)  
look at the section titled “Access denied when trying to access a frame”

hope this helps,  
/Shawn

---

<div class="post-metadata">

**Author:** ![rorjeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Post date:** [August 7, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/watir-code-problem-http/111329/3 "2007-08-07T19:03:31Z")

</div>

On Aug 5, 8:04 pm, Jeffrey B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1254:in
> 
> * * *
> 
> 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=monopolyherenow](http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow)

you should post this to the watir list (  
[http://groups.google.ca/group/watir-general?lnk=srg](http://groups.google.ca/group/watir-general?lnk=srg)  
)  
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://w3schools.com/](http://w3schools.com/)  
) might be a help

Paul

Paul
