Forum Discussion

yuef_shine's avatar
yuef_shine
Occasional Contributor
12 years ago

TestComplete cannot recognize the objects everytime

Hi,



I automate a website which is lauched in Chrome. But for recording KDT or replaying the scripts, I always have problem that TC cannot recognize the objects.

For example:

1. I perform the actions but after stopping recording, there is not any scripts recorded in TC.

2. I use the On-Screen Action to get every object and create the scripts, when replaying the scripts, I always get the ‘Object does not exit’ or ‘There was an attempt to perform an action at point (0, 0), which is out of the window bounds’ error.

For most of the failures, I highlight the object in the ‘On-Screen Action’ panel, and run the scripts from the stopped position, it can pass. But if I run the scripts from the beginning again, it stops at the same position again.



I have the TC extension installed and enabled in Chrome. So I have no idea why this happens and how to resolve this.



Any suggestions?



Thanks,

Vivian Yue

  • Try a Run Code Snippet operation with the code Sys.Refresh, followed by a timer pause of half a second or so... just before your command that goes looking for the control.



    When I get this error, it's because a control was just created by my program, and TestComplete hasn't added it to the map yet.
  • yuef_shine's avatar
    yuef_shine
    Occasional Contributor
    Hi Tanya,



    I installed TestComplete ver 9.20 and Chrome 31.

    I found that there is no such patch listed in the page you provided. Do I need to upgrade my TestComplete?



    Thanks,

    Vivian


    TestComplete ver. 9.20


    TestComplete ver. 9.20




    TestComplete ver. 9.20


    TestComplete ver. 9.20


    TestComplete ver. 9.20

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Vivian,


     


    TestComplete 9.31 should work properly with Chrome 31 without installing patches.