views:

594

answers:

2

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

A: 

You might look into chooseOkOnNextConfirmation, although that should probably be the default behavior if I read the docs correctly.

Hank Gay
A: 

assertAlert ought to do the trick. I see in the docs that alerts generated in a page's OnLoad event handler cannot be scripted this way (and have experienced it myself, alas, due to the ASP.NET page lifecycle). Could that be what you're running into?

BenetD