hi guys, how to handle alert box message in selenium test? i want to handle alert box. i want to test(verify text present) the text in alert box & then click ok to alert box. how can i do this.? plz tell me... advance thx. regards, karthick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Narayana Karthick
2006-Nov-15 08:22 UTC
Re: how to handle alert box message in selenium test?
Narayana Karthick wrote:> hi guys, > > how to handle alert box message in selenium test? > > i want to handle alert box. i want to test(verify text present) the > text in alert box & then click ok to alert box. how can i do this.? plz > tell me... > > > advance thx. > > regards, > karthick.hi guys, i found the answer for my problem. by using the below code in your .rsel file, we can pass the test. assert_alert_present verify_alert ''alert message'' thx, regards, Karthick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---