Forum Discussion

denhenp's avatar
denhenp
New Contributor
10 years ago

Waiting for a window to close functionality. Jscript or keyword test.

Hi,   I'm fairly new to testcomplete and in need of some help creating a jscript/keyword test, either will work.   Test scenario is: I click a createprofile  btn that opens up a new window. I a...
  • leandroaraujoso's avatar
    leandroaraujoso
    10 years ago

    Hello denhenp,

     

    Congratulations on your solution :)

    I'd like to suggest the following improvent on your script:

     

    if(milisec >= 45000)
    {
      Log.Error("Waited 45 sec for the window to close.. Stopping test");
    /*Stops the current Test Item*/
    Runner.Stop(true); }

    and then... Setup TC not to stop on error, see http://support.smartbear.com/viewarticle/63574/

     

    Regards,

     

    Leandro de Araújo Souza