Forum Discussion

shaque's avatar
shaque
New Contributor
11 years ago

Unable to find the object in playback

I am not only new to TestComlete but also new to programming.



I have looked at Smartbear FAQs and Forum, still need help.

My application is "OpenApplication" and I am not using Name mapping.

I don't see the missing object in Object Browser or Object Spy (Target or Point and Fix).

I have zipped and attached the Project, TestComplete version is 9.0.1312.7.

The Additional Information tab says "The object with the specified attributes does not exist".  Increasing the wait time did not help.

I recorded the test, TC generated a VB script, in playback I get the Unable to find the object error. 

3 Replies

  • Hi which object can't it find?

    Which line of code is it failing at?



    You may have to use a wildcard in some places to overcome dynamic names.
  • shaque's avatar
    shaque
    New Contributor
    Below is an excerpt from the code, failing on last line, can't find "systemMaintainPanel1".

    Replaced 1 by wild card * but it didn't help.


    Sub Test1



    Dim sonolab



    Dim radTabStrip



    Dim tableLayoutPanel



    Dim radPanel



    Dim radTextBox



    Call TestedApps.Sonolab.Run(1, True)



    Set sonolab = Sys.Process("Sonolab")



    sonolab.Window("#32770", "Sonolab 7").Window("Button", "&Yes").ClickButton



    Set radTabStrip = sonolab.WinFormsObject("MainForm").WinFormsObject("tableLayoutPanel1").WinFormsObject("radTabStrip1")



    Call radTabStrip.ClickTab("Setup")



    Set tableLayoutPanel = radTabStrip.WinFormsObject("RadTabStripContentPanel", "", 3).WinFormsObject("systemSettingsPanel1").WinFormsObject("tableLayoutPanel1")



    Call tableLayoutPanel.WinFormsObject("panel1").WinFormsObject("radListBox1").ClickItem("User Authentication")



    Call tableLayoutPanel.WinFormsObject("radTabStrip1").WinFormsObject("RadTabStripContentPanel", "", 2).WinFormsObject("radCheckBoxEnableAuthentication").Click(7, 13)



    Set radPanel = sonolab.WinFormsObject("UserAuthenticationForm").WinFormsObject("buttonPanel")



    Call radPanel.WinFormsObject("radTextBoxUserName").SetText("service")



    Set radTextBox = radPanel.WinFormsObject("radTextBoxPassword")



    Call radTextBox.Click(98, 2)



    Call radTextBox.SetText("Fld1")



    Call radTextBox.SetText("Fld1Svc")



    radPanel.WinFormsObject("centeredLayoutPanel1").WinFormsObject("radButtonOK").ClickButton



    Call radTabStrip.ClickTab("Maintenance")



    Set tableLayoutPanel = radTabStrip.WinFormsObject("RadTabStripContentPanel", "", 4).WinFormsObject("systemMaintainPanel1").WinFormsObject("tableLayoutPanel1")


  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    Set tableLayoutPanel = radTabStrip.WinFormsObject("RadTabStripContentPanel*").WinFormsObject("systemMaintainPanel*").WinFormsObject("tableLayoutPanel*")



    Give that a try...