Need ruby code to handle popup messages

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

Ravi K. 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.

thanx a lot
it helped a lot

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs