Forum Discussion

narender_1's avatar
narender_1
Contributor
13 years ago

waiting for the iexplore object

Hi,

 when Iam running my recorded scripts,some times Iam facing with this problem (waiting for the iexplore object).

to overcome from this Iam closing testcomplete  from my taskmanager and restarting again then it is working fine. Iam using IE8 browser.

Can you please let me know why Iam faing this problem with testcomplete .

please find the attachment for additional info.



Thanks,

Narender

3 Replies

  • krupa_luke's avatar
    krupa_luke
    Occasional Contributor
    Hello guys,



    for some weeks I had the same problem. At the start (at the very beginning) of EVERY single test execution, even when it was simplest function which calculates 2+2 (simplest mathematical operation,... so  it did not identify nor performed any operation on any object from IE or any other application), testComplete waited for iexplore object.



    I checked settings, unit references, ... everything. No matter what routine I run, testComplete always waited for iexplore and only after that continued.



    I had no idea why, but after creating new project in testComplete, I found out that this does not happen. Piece by piece, I kept copying parts of testComplete project, where I had this problem, and I found out that the problem was my mistake. 



    During debugging I left this piece of code in between 2 functions:



    function a()

    {smth}

    Sys.Browser("iexplore").BrowserWindow(0).Restore();

    function b()

    {smth}



    Since testComplete always checks syntax in every routines (scripts), it logically always tried to execute this part of code, apparantly because it did not belong to any function and was just hanging there.



    So if, for any reason, you experience testComplete hanging and waiting for some process (for no known reason), you might have done the same mistake as I did and left some code somewhere.



    Hope it helps somebody :-)



  • Hi Narendar,



    It may be because of delay problem, while running the scripts some time the application will open with in less time and some time it will take long time more than the default time set in the tool.



    Increase the default delay time in Test Complete---> Run time properties.



    Srini.