Forum Discussion

paarmann-ara's avatar
paarmann-ara
Contributor
6 years ago

wait for Listview loaded

I have a massive problem with testcomplete :-) . My Listview has more than thousand tuple (row). So, I must waiting for listview to ListView complete loaded, after that start to click on upper Co...
  • Wamboo's avatar
    Wamboo
    6 years ago

    I think you can use ImageRepository Class.

     

    Create the image from screen with loading spinner (If the spinner is moving, the photo may not be recognized, if it is moving, do only part of the loading message)

     

    After that check in script for this image. Take a look at this one:

     

    if(ImageRepository.obj.obj.Exists(Sys.Desktop));
        
    function waitUntilObjectExist(obj, counter) {
      var counter = counter || 60;
      for (var i = 1; i <= counter; i++) {
        if (obj.Exists == true) {
          aqUtils.Delay(1000);
        } else {
          break;
        }
      }
    }