I am new to Test Advantage . I am using Test Advantage 7.3 with QTP 9.2
I am not able to click on menu.
I want to click on Close button on the top .
Swfwindow("PTM 2010.2 (8.0.0c)").SwfToolbar("_MainMDIForm_Toolbars_Dock_Are").
ClickToolbarTool "ToolbarsManager,Toolbars,ExcelUIToolbar","Close"
Attached is screen shot for .Net Spy and Application
Hello,
Let me start off by saying in almost every scenario, you should be able to record against any toolbar tool and it should record the proper actions and parameters that you will ever need. In looking at your action it appears to be likely hand-coded, would you be able to included the recorded action of clicking on the tool. In looking at your image ClickToolbarTool appears to be the correct action as the tool is a button, and therefore would be a Click based Action, and it appears to be on an UltraToolbar and not a Ribbon as was later suggested. But the first parameter should only be the Toolbar key and if it was on a drop down, which it is not, comma-delimited for the path of dropdowns to the tool. You don't show the Toolbar key, in the image, but I am guessing it is either "ExcelUIToolbar" or some derivation of "XLeRate Toolbar". Also it appears that the Close button is MDIMerged, in which case it should likely have been recorded with a dollar sign to denote that such as "$Close"
Let me know if that helps, and if not what the recorded action was against the tool.
Hi Michael
Thanks for the reply . But its not working.
QTP is not recording at all on Ultratool bar so i had to hand code to find out if the toolbar exist
and the toolbar key exit.
I was able to confirm that ultratoolbar exist and inside that key Go for the tool exist .
Attached are the new screenshot for spy and toolbar which might give more insite .