Forum Discussion

Koushikln's avatar
Koushikln
Occasional Contributor
5 years ago

Explict WaitTime Testcomplete 12.5

Hi,   I am currently using testcomplete 12.5v for desktop automation. I am currently trying to delay the script execution with aqUtils.Delay(milliseconds).   Please help me how to use explict de...
  • Wamboo's avatar
    Wamboo
    5 years ago

    There is no built-in dynamic object waiting function.

     

    What you can do is build something like this in VB. I don't know VB personally, but I'm sending you an example in JS.

     

    function waitForObj(obj, counter) {
      var counter = counter || 60;
      for (var i = 1; i <= counter; i++) {
          if (obj.Exists == false) {
              aqUtils.Delay(1000);
          } else {
              return true;
              //break;
          }
      }
    }