Display results as :
Advanced Search

Go down
Posts : 5
Join date : 2013-05-27

How to capture dialog box & pop up alert message using Selenium IDE

on Mon May 27, 2013 8:22 pm
Hi all,

Currently i'm using selenium IDE in my projects. but I can't capture the dialog box objects & pop up alert messages using the IDE.

Can anyone help out to me in this.

Thank you

Dhinesh D
Posts : 186
Join date : 2012-02-14

Re: How to capture dialog box & pop up alert message using Selenium IDE

on Tue May 28, 2013 6:17 pm
for js alert use following API in Selenium IDE -


Undo the effect of calling chooseCancelOnNextConfirmation. Note that Selenium's overridden window.confirm() function will normally automatically return true, as if the user had manually clicked OK, so you shouldn't need to use this command unless for some reason you need to change your mind prior to the next confirmation. After any confirmation, Selenium will resume using the default behavior for future confirmations, automatically returning true (OK) unless/until you explicitly call chooseCancelOnNextConfirmation for each confirmation.

Take note - every time a confirmation comes up, you must consume it with a corresponding getConfirmation, or else the next selenium operation will fail.

Tarun K
Free Selenium Training
Back to top
Permissions in this forum:
You cannot reply to topics in this forum