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
110
Click on the Tool Bar /Ultratoolbar
posted

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

Parents
No Data
Reply
  • 7695
    Offline posted

    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.

     

     

     

Children