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
60
Issue with click on SWF button.
posted

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.

 Class Name: SwfButton

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

Parents
No Data
Reply
  • 7695
    Offline posted

     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.

Children