Forum Discussion

mfoster711's avatar
mfoster711
Regular Contributor
12 years ago

FindChild error - Object doesnt support this property or method


I am getting VBScript runtime error stating "Object doesn't suppport this property or method" on the FindChild line below. The FindAllChildren line works fine so why doesn't FindChild?



    Dim gCurrWind


    Dim Toolbar


    Dim Toolbar2


   


    Set gCurrWind = sys.Desktop.ActiveWindow


    Toolbar = gCurrWind.FindAllChildren(Array("WndClass"), Array("msctls_statusbar32"), 20, True)


    Toolbar2 = gCurrWind.FindChild(Array("WndClass"), Array("msctls_statusbar32"), 20, True)


 

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Mark,


     


    Are you using TestComplete 9.20? I do not see this error on this TC version. Try using it.