steve_hall
13 years agoContributor
Event Handling in TC script produced by coding not recording
Hi All,
I have a TC script that recursively trawls the various controls in our test app, to produce some "object mapping" csv files, for use by manual testers. This script was written manually, as opposed to using recording - so lots of sys.process().form().client.... lines, no object mapping references etc etc.
However, SOME of the controls I trawl aren't yet coded in our application, and ... *BOOM* an error dialog appears.
I want to add event handling for such dialogs - but seemingly, given the way that our TC script was produced, "OnUnexpectedWindow" and "OnOverlappingWindow" are not useable events.
Can someone suggest a way of implementing an "OnModalDialogBoxAppearing" event / handler?
Thanks
I have a TC script that recursively trawls the various controls in our test app, to produce some "object mapping" csv files, for use by manual testers. This script was written manually, as opposed to using recording - so lots of sys.process().form().client.... lines, no object mapping references etc etc.
However, SOME of the controls I trawl aren't yet coded in our application, and ... *BOOM* an error dialog appears.
I want to add event handling for such dialogs - but seemingly, given the way that our TC script was produced, "OnUnexpectedWindow" and "OnOverlappingWindow" are not useable events.
Can someone suggest a way of implementing an "OnModalDialogBoxAppearing" event / handler?
Thanks