1 year ago
#386940
rexD
How to check in Javascript alert is present on browser and then accept it?
In my application, if session of one user already exists, and the same user tries to create new session via new browser window then a Javascript alert is displayed to warn the user. Now, this alert is displayed only if the session already exists, so I have to accept it and continue login. Is there any method available in karate core to handle this scenario? I am aware of dialog(true) method to handle such alerts but, here I need to check explicitly if alert is present and then handle it. Is there any way to do that?
karate
0 Answers
Your Answer