Forum Discussion

mustafa_openTAS's avatar
mustafa_openTAS
New Contributor
2 months ago
Solved

Using ControlID for More Stable Desktop UI Tests in TestComplete

Hi SmartBear Team, Weโ€™re currently working on improving the stability and maintainability of our automated desktop tests using TestComplete for our application, OpenTAS. To reduce object recognition...
  • scot1967's avatar
    2 months ago

    Hi,   Yes TestComplete supports what you are doing very well.  This is my preferred method of object recognition. Have you tried increasing your search depth to 10 or 12?  It looks like your target object is several layers deep from the parent you have specified.  To further define your target multiple properties and values can be used in an array format.  

    https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/findchild-method.html 

    TestObj.FindChild(PropNamesPropValuesDepthRefreshTree)

    TestObjA variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
    PropNames[in]   Required   Variant   
    PropValues[in]   Required   Variant   
    Depth[in]   Optional   IntegerDefault value: 0   
    RefreshTree[in]   Optional   BooleanDefault value: True   
    ResultObject

    ... If you find my posts helpful drop me a like! ๐Ÿ‘ Be sure to mark the best answer if you get one to help others out and to credit the one who helped you.  ๐Ÿ˜Ž