Hi,
I am using "Infragistics(R) TestAdvantage(TM) 2006 Volume 1(CLR 2.0)" with QTP 9.2. I want to Select Cell and Perform Right Click operation on that selected Cell which is under a SwfTreeView Object and each Node is having Same number of Colunms.
Please find the attachment of the Screenshot
Thanks,
Robert
Robert,
I assume that you want to activate a cell as the WinTree only has node selection not cell selection. If this is the case, you can use the ActivateCell method of the SwfTreeView. There are two parameters for the ActivateCell method, the first is the nodeId and the second is the cellKey. To learn what these values should be, I recommend recording on your application and seeing what is recorded for the ActivateCell method.
The following is an example of the ActivateCell method that works with the UltraTree Cell Editing Demo:
SwfWindow("UltraTree Cell Editing").SwfTreeView("ultraTree1").ActivateCell "\0\3", "Title"
For Right Clicking, you can right click a node with the RightClick method:
SwfWindow("UltraTree Cell Editing").SwfTreeView("ultraTree1").RightClick "\Employees\4"
If you need to be able to click on a specific cell, then you will need to use the Click method that is common to all objects and use mouse coordinates.
Let me know if you have any questions with this matter.
Alan
Alan,
I am working with an application that uses the Infragistics SwfTreeView.
I can learn the SwfTreeView into the Object Repository. However QTP does not record.
Infragistics support is aware of the issue.
I wish that I could record on the tree to see how it creates the Node Id's but the recording does not work.
Can you tell me the pattern of the Node Id's please? My TreeView Structure looks like:
AA
BB
CC
DD
EE
There is a common top item that never changes. The items below do change.
Kevin
Kevin,
Are you able to record on the samples that come with Infragistics Test Automation? If so then record on the one with the tree to see how it records. If not then you have a larger issue with the configuration that will need to be resolved.
Are you able to record on those samples? Also what is the related case number for the case you opened?
I appreciate the quick response.
I tried recording on my Application under test again. it is working now.
I can see the pattern for
.ActivateCell
.RightClick
.ActivateNode
.DoubleClick
AFter getting some good recording I can understand how it works.
It is using text. None of the 0;5 or 0:"MyPage" type of parameters. Only 1 parameter which is a string.
Thank you for the update. Let me know if I may be of further assistance.