Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Getting Error "Object Required" while working on Infragistic Toolbar Object
posted

I want to get object for a PopupControlContainer (user defined control).

While trying this

swfWindow("window").SwfToolbar("_TemplateFormControls_Toolbars").Object.ToolbarsManager.Toolbars

QTP throws an error as "Object required 'Toolbars'

In detail, I want to get all the childobject of a Toolbar button, which invokes a Pop up Window, for that I was trying to look for objects for that button

but got this error.

any help would be appreciated.

Parents
No Data
Reply
  • 6729
    Suggested Answer
    Offline posted

    Hi,

    You can use "GetItemProperty(toolbar, tool, propertyName)" method. Record a click over the toolbar button (I think its a popup menu and not a button) and use the first 2 parameter as toolbar and tool and for the third param, use "Tools"

    For example:

    Set ChildToolas = swfWindow("").SwfToolbar("").GetItemProperty("Toolbar1", "File", "Tools)

    You can then loop through the collection.

    I hope this will work

    Ammar

Children
No Data