| || |
Winrunner 6.0 - Wait for Multiple Objects
Can anyone please tell me whether how it would be possible to wait for multiple objects and then trigger the appropriate event depending upon which object is returned.
For example, how could the following piece of code be amended to deal with multiple objects.
public function WaitForObjectToAppear( ObjectFrame, ObjectName, LogMessage )
set_window( ObjectFrame, 1); # select required screen area
i=0; # start loop
while (obj_exists(ObjectName) == E_NOT_FOUND) # while the object is not found, start counting
i == i++;
if (i >=10)
report_msg ("Test Failed - Expected action took longer than" & " " & i & "seconds");
report_msg( LogMessage & " + " i & " secs.");
All comments much appreciated. Thanks in Advance.