Hi Ammar, I am using TestAdvantage 2005 Volume 2 with HP QuickTest Pro scripts. In order to access 'Infragistics.Win.UltraWinToolbars.ButtonTool' I am using ClickToolbarTool method. But sometime this method does not work. Specially, when script is run on different machines. Even though SwfConfig.xml file shows Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea" mapped to SwfToolBar and Infragistics.QTPServer.WinToolbarsManager.v5.2.dll. Do we require some other settings need to be checked or is there any workaround for this problem? Regards, Mayank
Hi Ammar,
I am using TestAdvantage 2005 Volume 2 with HP QuickTest Pro scripts. In order to access 'Infragistics.Win.UltraWinToolbars.ButtonTool' I am using ClickToolbarTool method.
But sometime this method does not work. Specially, when script is run on different machines. Even though SwfConfig.xml file shows Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea" mapped to SwfToolBar and Infragistics.QTPServer.WinToolbarsManager.v5.2.dll.
Do we require some other settings need to be checked or is there any workaround for this problem?
Regards,
Mayank
I use this method in TestComplete to click on toolbar tools.
function ClickToolButton(toolbarsManager, toolBarKey, buttonKey){ try { var toolbar = toolbarsManager.Toolbars.GetItem_2(toolBarKey); var button = toolbar.Tools.GetItem_2(buttonKey); var x = button.Bounds.X + button.Bounds.Width / 2; var y = button.Bounds.Y + button.Bounds.Height / 2; Sys.Desktop.MouseDown(VK_LBUTTON, x, y); Sys.Desktop.MouseUp(VK_LBUTTON, x, y); Log["Event"]("The '" + buttonKey + "' button from the '" + toolBarKey + "' toolbar is clicked"); } catch(ex) { Log["Error"]("Failed to click tool button " + buttonKey + " on toolbar " + toolBarKey, ex["description"]); }
}
Essentially all it does is acquires the bounds of the tool you want to click.
Then determines the screen position of it and clicks that area on the screen.
Hi AaronTFoley,
We are also facing the same issue with ClickToolbarTool for Infragistics Toolbar. Some times method is working fine and sometimes it is throwing "Object doesn't support this property or method: 'SwfToolbar(...).ClickToolbarTool'" error.
Where and How to update your code into infragistics dlls, I am new to Ingragistics
Please reply me , we struggling with this issue from last 3 months
Regards
Pranay