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.
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