Question

1
Replies
1710
Views
MichaelF2091 Member since 2017 9 posts
IBM
Posted: August 17, 2017
Last activity: August 21, 2017
Closed

How to automate closing a javascript popup message dialog

I met such an issue that:I'm using OpenSpan 7.0.66.0, 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.

Low-Code App Development Testing Applications
Moderation Team has archived post
Share this page LinkedIn