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
120
TreeView has a button that I need to click on in QTP
posted

In my QTP script, I need to be able to click on a button in a TreeView. I can access/activate  the cell it's in:

SwfWindow("SwIFT").SwfTreeView("_AttributesEditorUltraTree").ActivateCell "\3\1", "Value"

I asked the developer and he said I could do something like this:

_AttributesEditorUltraTree.Nodes[0].Cells[1].EditorResolved.ButtonsLeft[0].Click

to stimulate a click on the button.  This doesn't work when I try it in QTP.

SwfWindow("SwIFT").SwfTreeView("_AttributesEditorUltraTree").Object.Nodes["\3\1"].Cells["Value"].EditorResolved.ButtonsLeft[0].Click

as I get a 'Expected end of statement' error.   What am I doing wrong?

 

Thanks,

Rebecca

Parents
No Data
Reply
  • 120
    posted

    As a follow up, the developer told me that the EditorResolved (CellEditor) is an EmeddableEditorBase. For cells with buttons. it is an EmbeddableEditorButtonBase which contains 2 collections of EditorButton (ButtonsLeft and ButtonsRight).

     

    Hope this helps. Let me know if you need more information.

     

Children