Forum Discussion

Ravik's avatar
Ravik
Super Contributor
12 years ago

How to handle wait Pop up (Progress bar) in TestComplete

Hi All, In my Application when I select some data from drop down a Pop up is appear and says Please wait..., (when wait pop up appearing my application page not visible until the wait pop up is...
  • joffre's avatar
    12 years ago
    Hello Ravi Khapre, how are you doing?



    There are many ways to wait for this pop up window to disappear.



    You can use the WaitWindow method to check if the window is shown, and then the .Exists method as loop to wait while the window is been shown. Like this:



    p = Sys.Process("Notepad");

    // Waits for the window for 10 seconds

    w = p.WaitWindow("*", "Open*", -1, 10000);

    while (!w.Exists)

    {

      Delay(1000)

    }




    Check this article for more information (I've edited the code above for your need): Waiting for an Object, Process or Window Activation