Forum Discussion
Marc,
The WaitPage method pauses the execution until a web page is loaded. In your case, the new page is not loaded, so this method does not help.
Unfortunately, Flex does not offer a universal approach to accomplishing the task you need.
As far as I understand, you have access to internal methods and properties of your Flex app. In this case, you can check the internal object properties or methods to see whether the test action is completed successfully or not. I'd suggest that you consult with application developers. Perhaps, they will have some suggestions. You can ask developers to create some kind of internal flag that will indicate completion of a database operation or another action. If your application uses RemoteObject for calling methods, you can ask developers to define event handlers for the events that occur when the call fails or succeeds, something like this --
private var ro:RemoteObject = new RemoteObject();
ro.addEventListener(ResultEvent.RESULT, getResult);
ro.addEventListener(FaultEvent.FAULT, serverError);