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
315
How to Select Cell and Right Click on a SwfTree Node
posted

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

 

 

SwfTreeMouseRightClick.zip
Parents
No Data
Reply
  • 22852
    Offline posted

    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

     

Children