Is it possible to create a script routine that would be run when an unexpected window appears?
A.: Yes. Right-click the Event control node in the Project Explorer panel and select Edit from the context menu. TestComplete will show the Event Control editor in the Workspace panel. The properties are organized into two pages: Type Library and Event Handlers. Switch to the Event Handlers page and within this page, activate the Events tabbed page. This page lists the available events. Double-click the OnUnexpectedWindow event. TestComplete will show the New Routine dialog. In the dialog, specify the name of the event handling routine and the unit that will hold this routine; then press OK. TestComplete will create an event handler and display it in the Code Editor. Refer to the “About Events and Event Handling” and “Creating a Script Routine That Handles the OnUnexpectedWindow Event” help topics for more information and code examples.
Related Questions
- The Ledger List of Values on the Run Financial Reports form shows all possible ledgers. How can this be limited to only ledgers the responsibility should access?
- I used the Zelix KlassMaster ZKM Script Helper to create a ZKM Script file but when I run it I get warnings. Why?
- Is it possible to create a script routine that would be run when an unexpected window appears?