I have a script that successfully runs through a CSV list and adds some records into an old legacy application. Periodically, the application will put up any one of several dialog windows that could say any number of things, (record not found, record already exists, etc.). It is at this point I want to stop the script from executing any further sendkey commands.
The dialog windows are all within the application itself and I can't seem to be able to detect through normal means of iterating through all applications or windows.
I was thinking I could use a reference screenshot and "subtract" that screenshot from a screen shot taken at the end of every record operation. If there was significant difference in result (byte count), there is probably some prompt on the screen or the result is something other than expected and I know to halt the script. But, how to do this?
Does anybody know of something like a image difference engine I could use in this case? Or, if you know of a previous post related to this same objective that I some how missed while searching, please let me know.
Thanks!
The dialog windows are all within the application itself and I can't seem to be able to detect through normal means of iterating through all applications or windows.
I was thinking I could use a reference screenshot and "subtract" that screenshot from a screen shot taken at the end of every record operation. If there was significant difference in result (byte count), there is probably some prompt on the screen or the result is something other than expected and I know to halt the script. But, how to do this?
Does anybody know of something like a image difference engine I could use in this case? Or, if you know of a previous post related to this same objective that I some how missed while searching, please let me know.
Thanks!