# Watir general question

**URL:** <https://www.ruby-forum.com/t/watir-general-question/128441>\
**Category:** Ruby\
**Created:** [February 7, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/watir-general-question/128441 "2008-02-07T18:42:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bskaggs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ab097/32.png) [@bskaggs](https://www.ruby-forum.com/u/bskaggs)\
**Post date:** [February 7, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/watir-general-question/128441/1 "2008-02-07T18:42:49Z")

</div>

hi everyone

it was really difficult to find a watir forum at all, so i hope i can  
find some help in here anyway.

is there a way of veryfying that an IE spawned browser window exists?

from what i can gather on the watir and ruby pages, they only cater for  
dialogs.

basically on logging into my app, it then spawns a second ie instance,  
this can be attached to by using the following:

$ie = Watir::IE.attach(:title, ‘System Navigator’)

but is there a way i can check whether this exists before i attach to  
it?

any help would be very much required?

i was thinking along the lines of

$ie.window(:title, ‘System Navigator’).exists -\> but obviously there is  
no window control.

thanks in advance.

---

<div class="post-metadata">

**Author:** ![bskaggs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ab097/32.png) [@bskaggs](https://www.ruby-forum.com/u/bskaggs)\
**Post date:** [February 16, 2008, 4:15am UTC](https://www.ruby-forum.com/t/watir-general-question/128441/2 "2008-02-16T04:15:44Z")

</div>

On Feb 7, 11:42 am, Brad S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> $ie =Watir::IE.attach(:title, ‘System Navigator’)
> 
> but is there a way i can check whether this exists before i attach to  
> it?

$ie = Watir:IE.find(:title, ‘System Navigator’)

it will be nil if there is no such window.
