Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by dhinesh 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

dhinesh

Posts : 5
Join date : 2013-05-27

Back to top Go down

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

Post by tarun3kumar on Tue May 28, 2013 6:17 pm

for js alert use following API in Selenium IDE -

chooseOkOnNextConfirmation()

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.

_________________
Thanks
Tarun K
Free Selenium Training

tarun3kumar
Master
Master

Posts : 186
Join date : 2012-02-14

http://seleniumtests.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum