Forum Discussion

priyankarathi's avatar
priyankarathi
New Contributor
14 years ago

Issue with FindChild method of TestComplete 8

Hi,



I am using TC8 for automation of WPF UI.

It used to work earlier as below:



set objListView = parentwindow.FindChild("Name","JobsListview",100)



where

JobsListview :: Name of the list view

parentwindow :: It is the window on which list view exists.



Now it not working.

Please let me know solution if any.



Thanks,

Priyanka

2 Replies

  • hi,



    check whether there is any child objects available under the specified node first.



    i faced the same kind of problem in java application. till now i didn't use wpf.
  • pjaju's avatar
    pjaju
    Occasional Contributor
    Make sure that all the "parents" of the desired object are uniquely identifiable. If not, then you may have to break up the FindChild method:

    Set rootParent = <parent object>

    Set childParent = rootParent.FindChild(uniquely identifiable criteria)

    Set childChildParent = childParent.FindChild(uniquely identifiable criteria)