# Watir: Facing problem with "IE.attach"

**URL:** <https://www.ruby-forum.com/t/watir-facing-problem-with-ie-attach/138103>\
**Category:** Ruby\
**Created:** [May 20, 2008, 9:19am UTC](https://www.ruby-forum.com/t/watir-facing-problem-with-ie-attach/138103 "2008-05-20T09:19:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anukulsinghal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Post date:** [May 20, 2008, 9:19am UTC](https://www.ruby-forum.com/t/watir-facing-problem-with-ie-attach/138103/1 "2008-05-20T09:19:55Z")

</div>

Hi,

I tried the following piece of code:

require ‘watir’

ie = Watir::IE.new  
ie.attach(“[www.yahoo.com](http://www.yahoo.com)”)

Getting the following error:

undefined method ‘attach’ for #Watir::IE:0x90edef0 (No Method Error)

I know the goto method and the start method can navigate me to the  
desired url but what I want to do is this:

1. I want to first check if there is any open browser already existing.
2. If it exists, I want to attach a url to it.
3. If it does not exist, then I want to create a new instance and  
navigate to the desired url using goto.

Can anyone please help me in getting this troubleshooted?

Thanks,  
Anukul
