10-21-2009, 06:32 PM
As Basanth suggested, on the very last line have a flag set to some value inside vbs. Now in your Do ... Loop, wait for that value to appear. (Of course don't forget to get some other condition as well, lest the program will go in infinite loop in case some error happens inside vbs.)
Want to fast track your QTP/UFT Learning? Join our UFT Training Course