Hi,
To use the WaitAWTObject method correctly, find the AWTObject method that is used to address the needed object in the Object Browser and add the Wait prefix to the method name and one more parameter - Timeout.
For example, in my application, the AWTObject("test","",0) method is used to address the application form (see the attached image). So, to wait the application form, I'll use the following statement:
The following example illustrates the use of the WaitAWTObject method in scripts:
function test2()
{
var appForm;
// Wait for the application form for 10 seconds
appForm = Sys.Process("java").WaitAWTObject("test", "", 0, 10000);
if (appForm.Exists)
Log.Message("Found")
else
Log.Message("Not found")
}