Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
nileshb9
Posts : 1
Join date : 2013-10-29

how to handle javascript confirmation alert of next page in selenium ide Empty how to handle javascript confirmation alert of next page in selenium ide

Tue Oct 29, 2013 8:34 pm
Hi All,

Need help to handle javascript confirmation alert of next page in selenium ide.

i am automating one site which has following scenario.
 On page there is Submit button on clicking its redirect to 'next page' and on opening of that getting java script alert message with 'Ok' button. On clicking of Ok button next page details are gettingdisplayed.

my script is getting failed as its unable to find that javascript alert.

I tried with chooseOkOnNextConfirmation and assertConfirmation also assertAlert commands but nothing is working.

getting error as 'There were no alerts' and my script is failing.

I am able to handle javascript alert if its on same page with above commands but not on next page, please help if anybody has done this before.

Thanks in Advance, Nilesh
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

how to handle javascript confirmation alert of next page in selenium ide Empty Re: how to handle javascript confirmation alert of next page in selenium ide

Tue Dec 03, 2013 3:10 am
Try to put in a pause before chooseOkOnNextConfirmation.  It may be getting to the next page and calling that command before there is an alert displayed
Back to top
Permissions in this forum:
You cannot reply to topics in this forum