Forum Discussion

Rammherz's avatar
Rammherz
Occasional Contributor
6 years ago
Solved

Flex object is not presented in object tree

Hi all,   In Test Complete project, which was written in 2013 (not by me), I see that one of the flex objects can be successfully found:   function ActionToolbar() { var oParent = MVVO_PageCo...
  • Rammherz's avatar
    Rammherz
    6 years ago

    I found the solution. 

    I just use page URL instead of ActionToolbar as parent object in the function 

     

    function Approve()
    {
        var oParent = ActionToolbar();
        var aProps = ["Caption", "ObjectType"];
        var aVals = ['Approve', 'ToolButton'];
        
        return CFInternetBrowser.FindObjectByProperties(aProps, aVals, oParent, "Approve");
    }

    and it finds both types of buttons.

     

    So I wonder why developers of this autotests used ActionToolbar as parent objects... I suggest they had reasons for it.

    But I have no problem to resolve now :)

    tristaanogre, thanks a lot!