Forum Discussion

stega's avatar
stega
Contributor
13 years ago
Solved

Wait object

Hi All,

I have a problem, with waiting objects.

I want to test an export function. When i click to export button it opens ms excel and when the export is complete it swithches back to the main app and a pop-up window appears with the message, the export was successfull.

I tried the WaitVCLObject method, but nothing happens.



...

panel.btnExcel.ClickButton();

                

myapp.WaitVCLObject("TMessageForm");

                

button.ClickButton();

excel = Aliases.EXCEL;

wndXLMAIN = excel.wndXLMAIN;

wndXLMAIN.XLDESK.wndBook1.Keys("^s");

...



I want to avoid delay, because the different kind of exports need different delay times.

Thanks.