Question

1
Replies
1768
Views
Michael Fu (MichaelF2091)
IBM

IBM
CN
MichaelF2091 Member since 2017 9 posts
IBM
Posted: August 17, 2017
Last activity: August 21, 2017
Posted: 17 Aug 2017 16:40 EDT
Last activity: 21 Aug 2017 15:30 EDT
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.

DevOps Testing Applications
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.