# Modal dialog handling

**URL:** <https://www.ruby-forum.com/t/modal-dialog-handling/148170>\
**Category:** Ruby\
**Created:** [September 10, 2008, 2:16am UTC](https://www.ruby-forum.com/t/modal-dialog-handling/148170 "2008-09-10T02:16:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ythu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/e56c9b/32.png) [@ythu](https://www.ruby-forum.com/u/ythu)\
**Post date:** [September 10, 2008, 2:16am UTC](https://www.ruby-forum.com/t/modal-dialog-handling/148170/1 "2008-09-10T02:16:46Z")

</div>

Hi,  
I’m using watir 182(the version that supports modal dialog) to automate  
a test.there is this pop up modal dialog where I have to click on  
checkbox to choose an interval. rightnow seems it could not even detect  
the existence of this modal dialog.  
is there any other way I could identify it, e.g. id or name?

if($ie.modal\_dialog(:title,“Intervals – Webpage Dialog”).exists?)  
then  
puts “dialog found”  
end

thanks
