When I try to access a PopupControlContainerTool object in a Toolbar Ribbon using either of the following statements:
SwfWindow("Framework").SwfToolbar("_FormMain_Toolbars_Dock_Area_T").SelectRibbonComboTool "Personnel:Filter","$PopupControlContainerTool_UIC",1
SwfWindow("Framework").SwfToolbar("_FormMain_Toolbars_Dock_Area_T").SelectRibbonListTool "Personnel:Filter","$PopupControlContainerTool_UIC",1
I get an error message similar to this:
IG : The specified TextBox Tool[ComboBoxTool] is not a TextBox Tool
IG : The specified TextBox Tool[ListTool] is not a TextBox Tool
Looking at the Spy I cannot see any other kind of method to access this object. Can you help me out here?
I am using TestAdvantage 9.2 with QTP 10.0
Mike
Hi Mike,
You should have access to either the help or intellisense that should give you a list of all the actions, but with Toolbars there are quite a few of them so I can imagine that they may be difficult to find. Also the action should record correctly. But that being said, as it is a PopupControlContainer, like a PopupMenu it uses the DropDown action prefix to use it. While you may have a ListTool or combobox inside the Tool, it itself is not a ComboBoxTool or ListTool, and hence why it is failing. So the action that you likely need is DropDownRibbonTool.
I hope this helps,