We are using the Infragistic TestAdvantage 2007 Vol3 and facing an issue where the QTP is able to set focus on the button but when tries to click on the same it fails.
NativClass: WindowsForms10.Window.8.app.0.378734a
regexpwndclass: WindowsForms10.Window.8.app.0.378734a
regexpwndtitle &New
swfname: boDynamicButton
swfname path:
boDynamicButton;buttonCollection;panel1_Fill_Panel;panel1;mainPanel;ctlS
earch;frmBrowse;;mdiForm
swftypename: Adaptiv.Operations.Core.Win.boButton
visible True
If we have the following code
SwfWindow("Adaptiv Operations").SwfWindow("Master Agreements - Browse").SwfButton("New").SetFocus
[This works]
SwfWindow("Adaptiv Operations").SwfWindow("Master Agreements - Browse").SwfButton("New").Click
[Here we get error saying object not visible]
At the same time if we replace Click by dblclick then it also works.
Does any one have any known resolution for this?
Please suggest.
Malayaj
I am on a.NET app (4.0) with Infragistics 2010 v.1 and UFT 12.01
Hi,
I have a similar issue.... I am not able to click on a Button, when I spy the button the swftype is " Infragistics.Win.Misc.UltraButton "
In the .NET app I also have System Windows form buttons and they are working fine with the following code...
Set Obj_ClickBtn = SwfWindow("swfname:=...").SwfButton("swfname:=....")
If Obj_ClickBtn.exist Then
Obj_ClickBtn.SetFocus
Obj_ClickBtn.Highlight
Obj_ClickBtn.Click
End If
I am using same code for Infragistics buttons beacuse when recording it shows the same as its on SWF buttons (window().swfbutton().click)
Could you please help me to identify why on Infragistics buttons It does the Highlight but not the click.
Regards,
Berenice
You have listed an swfTypeName as Adaptiv.Operations.Core.Win.boButton. While this is not our control, I am assuming then that you this has been inherited from our control. That being said, this should not be an issue, it seems like there may be something else going on. DblClick is handled by the base SwfButton object, so if that works I think we should be able to assume it passes the base test QTP does for all controls being visible. Which QTP throws an object is not visible error if the object is not currently on the screen.
We do a few additional tests for click, that is not done by default. First confirming that it's UIElement, exists, and it's rectangle, has a size greater than x=0, y=0. We also check to make sure that the button's rectangle is inside the bounds of the form that it is on. In a few simple tests that I have done, that scenario fails anyway by QTP, so DblClick should fail too. What this possibly means is that either in your inherited button code, you may be using or overriding one of those values such that it fails one of those tests. Or you are using the control in a scenario that may not have been perdicted. What I would suggest you do, is contact our developer support and describe the scenario to them and they will be able to determine if it is a bug, and if so they will be able to log it accordingly.