From: Rodrigo Bermejo Date: 2009-09-04T04:15:50+09:00 Subject: Re: need ruby code to handle popup messages Ravi Kanth wrote: > Hello guys > > I am running an web application driven by watir > in the webpage when i click the logout button the page should exit but > the problem is a pop window comes stating "are you sure "yes or no"" > I need some help how to access this window and force it to yes and close > automatically. > > > thanx in advance You have many options: 2 of them -> 1- SendKeys - http://rubyonwindows.blogspot.com/2007/05/automating-applications-with-ruby.html 2- check this example and modify the wait() method according your window title http://wiki.openqa.org/display/WTR/Security+Alerts -ronnie. -- Posted via http://www.ruby-forum.com/.