Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to create a script routine that would be run when an unexpected window appears?

0
Posted

Is it possible to create a script routine that would be run when an unexpected window appears?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123