Unable to identify Infragistics control
I am trying to automate an application using Test Partner (ver 6.3) which has Infragistics control. When tried record and playback, TP is not able to identify the control, neither as an object nor as an image. The application is an add-in to MS excel.
Pls help me how to proceed with this.
Re: Unable to identify Infragistics control
I wish I could help you on that. I'm having the same trouble.
My scenario is as follows:
There is a GUIObject in my application with:
ClassName=WindowsForms10.Window.8.app.0.* and DotNETClassName=Infragistics.Win.UltraWinTabContro l.UltraTabControl
This GUIObject has three unique DotNETPanels, each one whose "Name" assignment corresponds with the respective tab clicked on the application. For example, if I click "Tab A", the sub-object panel is identified as DotNETPanel("Name=utpTablePanelA"). Thus, the following DotNETPanels are active (one at a time) based on which tab is clicked:
The script code is attached which illustrates each of the three cases. When I run it, the first tab is active and TestPartner executes the statements associated with the first CASE block. However, when it comes to the second CASE block, the following error message displays:
Run-time error '-2147467259 (80004005)':
Failed to find the attach name:
In TestPartner, I have also gone into Tools-->.NET References and added the reference to one of the three DotNETPanels of the Infragistics class, which is "Infragistics2.Win.UltraWinTabControl.v.10.2.d ll. But that worked to no avail.
Please take a look at the attachment and provide feedback as to how it should be recoded in order for it to work.
Thanks very much for your help.