From: Raj pal Date: 2013-03-19T14:01:41+09:00 Subject: Re: question on watir hi, i used this code to handle this pop up. def modalDialog(flg) begin #Watir::wait($browser.modal_dialog().enabled) if(flg ==1) puts "modalDialog called" errLog=$browser.modal_dialog().td(:class,"PopupMsgTitleMenu").text $browser.modal_dialog().table(:id,"OK").click else $browser.modal_dialog().table(:id,"OK").click errLog ="" end return errLog rescue Exception => e $logger.error " modalDialog - #{e.message}" end end Thank you -- Posted via http://www.ruby-forum.com/.