Click on Save Button - Infragistics
I need clarifications in using 3rd party control - Infragistics.
I am using QTP 9.2 (with .NET add-in) and I am trying click on a Save button (similar to MS word save icon). I used .Net Window Forms spy, I get SWFObject type description as Infragistics.Win.UltraWinToolbars.UltraToolbarsDoc kArea.
I scripted based on the Spy-ed information,
<font class="small">Code:</font><hr /><pre>
SwfWindow("swf-Window").SwfObject("Toolbars_Dock_Area").<font color="blue">Object.ToolbarsManager.Toolbars.Key(" UltraToolbarSaveCloseExcel").Tools.Key("Save").Cli ck
</font> </pre><hr />
I see the Hierarchy to the "save" Icon as ToolBarManager -> ToolBars -> Tool. There are multiple Objects in ToolBars with different Key name. So I pick the one I need. Likewise, I see multiple objects under Tools and I pick the one I need using Key Property.
When I execute the statement, it DOES NOT perform the required action. Am I doing something wrong? Do I need any other Add-in?