Click button OK inside an Alert

25 views
Skip to first unread message

Bruno Moura

unread,
Aug 28, 2009, 3:32:54 PM8/28/09
to selenium-ruby
Hello!

I need to click in the button ok inside alert window
with a selenium command.

For me assertAlert or verifyAlert aren't enough

It's possible?

Anyone can help me with this with a example for a complete syntax
command in Selenium IDE for this problem?

Thanks

Bruno

Rodreegez

unread,
Oct 13, 2009, 12:32:09 PM10/13/09
to selenium-ruby
if you are using a Ruby implementation of Selenium (i.e. selenium-
client) you need to consume allert boxes with 'get_confirmation'

this will click the ok button by default, unless you also call
'choose_ok_on_next_confirmation'

hth,

Ad.
Reply all
Reply to author
Forward
0 new messages