Question
IBM
CN
Last activity: 21 Aug 2017 15:30 EDT
How to automate closing a javascript popup message dialog
I met such an issue that:I'm using OpenSpan Proprietary information hidden, today i failed to automate submitting a form because i can't close a javascript popup message dialog with validation information based on a web application.
<input type="button" onclick="Set()" id="totoro"/>
The normal process is that once i click this button,the function "Set()" will validate data in this form,if passed,the form will be submitted;otherwise it will popup a message dialog.
Now I interrogated this button and "Ok" button of popup message dialog,I found a very strange issue that the performclick method of button "totoro" must wait the popup window to close itself. It means I can't automate closing popup window. Meanwhile I also tried to use invokescript,but it didn't work.
Any help is appreciated.